Struct capnp::introspect::RawStructSchema
source · pub struct RawStructSchema {
pub encoded_node: &'static [Word],
pub nonunion_members: &'static [u16],
pub members_by_discriminant: &'static [u16],
pub members_by_name: &'static [u16],
}
Expand description
Type information that gets included in the generated code for every user-defined Cap’n Proto struct.
Fields§
§encoded_node: &'static [Word]
The Node (as defined in schema.capnp), as a single segment message.
nonunion_members: &'static [u16]
Indices (not ordinals) of fields that don’t have a discriminant value.
members_by_discriminant: &'static [u16]
Map from discriminant value to field index.
members_by_name: &'static [u16]
Indices of fields, sorted by their respective names.
Trait Implementations§
source§impl Clone for RawStructSchema
impl Clone for RawStructSchema
source§fn clone(&self) -> RawStructSchema
fn clone(&self) -> RawStructSchema
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for RawStructSchema
Auto Trait Implementations§
impl Freeze for RawStructSchema
impl RefUnwindSafe for RawStructSchema
impl Send for RawStructSchema
impl Sync for RawStructSchema
impl Unpin for RawStructSchema
impl UnwindSafe for RawStructSchema
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