pub struct FieldDef {
pub name: ArcStr,
pub frequency: Frequency,
pub typ: DataType,
pub num: FieldNum,
}Fields§
§name: ArcStr§frequency: Frequency§typ: DataType§num: FieldNumImplementations§
Source§impl FieldDef
impl FieldDef
Sourcepub fn wire_types(&self) -> (WireType, Option<WireType>)
pub fn wire_types(&self) -> (WireType, Option<WireType>)
What wire types does this field support, the first value returned is the normal wire type, the second wire type refers to a wire type if the field supports packed repeated encoding
pub fn default_wire_type(&self, force_packed: bool) -> WireType
pub fn is_optional(&self) -> bool
pub fn is_repeated(&self) -> bool
pub fn is_packed(&self) -> bool
pub fn is_message(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldDef
impl RefUnwindSafe for FieldDef
impl Send for FieldDef
impl Sync for FieldDef
impl Unpin for FieldDef
impl UnwindSafe for FieldDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more