use crate::cached_size::CachedSize;
use crate::UnknownFields;
#[derive(Default, Eq, PartialEq, Clone, Debug, Hash)]
pub struct SpecialFields {
unknown_fields: UnknownFields,
cached_size: CachedSize,
}
impl SpecialFields {
pub const fn new() -> SpecialFields {
SpecialFields {
unknown_fields: UnknownFields::new(),
cached_size: CachedSize::new(),
}
}
pub fn clear(&mut self) {
self.unknown_fields.clear();
}
pub fn cached_size(&self) -> &CachedSize {
&self.cached_size
}
pub fn unknown_fields(&self) -> &UnknownFields {
&self.unknown_fields
}
pub fn mut_unknown_fields(&mut self) -> &mut UnknownFields {
&mut self.unknown_fields
}
}