pub enum FieldSection {
Data,
Pointer,
Group,
}Expand description
Which section of a Cap’n Proto struct a field resides in.
Variants§
Data
Data section (fixed-size scalars: bool, ints, floats, enum ordinals)
Pointer
Pointer section (variable-length: Text, Data, List, Struct)
Group
Group (inlined, no slot)
Trait Implementations§
Source§impl Clone for FieldSection
impl Clone for FieldSection
Source§fn clone(&self) -> FieldSection
fn clone(&self) -> FieldSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldSection
impl Debug for FieldSection
Source§impl Default for FieldSection
impl Default for FieldSection
Source§fn default() -> FieldSection
fn default() -> FieldSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FieldSection
impl<'de> Deserialize<'de> for FieldSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FieldSection
impl PartialEq for FieldSection
Source§fn eq(&self, other: &FieldSection) -> bool
fn eq(&self, other: &FieldSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FieldSection
impl Serialize for FieldSection
impl Copy for FieldSection
impl Eq for FieldSection
impl StructuralPartialEq for FieldSection
Auto Trait Implementations§
impl Freeze for FieldSection
impl RefUnwindSafe for FieldSection
impl Send for FieldSection
impl Sync for FieldSection
impl Unpin for FieldSection
impl UnsafeUnpin for FieldSection
impl UnwindSafe for FieldSection
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