Struct capnp::introspect::RawBrandedStructSchema
source · pub struct RawBrandedStructSchema {
pub generic: &'static RawStructSchema,
pub field_types: fn(_: u16) -> Type,
pub annotation_types: fn(_: Option<u16>, _: u32) -> Type,
}
Expand description
A RawStructSchema with branding information, i.e. resolution of type parameters.
To use one of this, you will usually want to convert it to a schema::StructSchema
,
which can be done via into()
.
Fields§
§generic: &'static RawStructSchema
The unbranded base schema.
field_types: fn(_: u16) -> Type
Map from field index (not ordinal) to Type.
annotation_types: fn(_: Option<u16>, _: u32) -> Type
Map from (maybe field index, annotation index) to the Type of the value held by that annotation.
Trait Implementations§
source§impl Clone for RawBrandedStructSchema
impl Clone for RawBrandedStructSchema
source§fn clone(&self) -> RawBrandedStructSchema
fn clone(&self) -> RawBrandedStructSchema
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 moresource§impl Debug for RawBrandedStructSchema
impl Debug for RawBrandedStructSchema
source§impl From<RawBrandedStructSchema> for StructSchema
impl From<RawBrandedStructSchema> for StructSchema
source§fn from(rs: RawBrandedStructSchema) -> StructSchema
fn from(rs: RawBrandedStructSchema) -> StructSchema
Converts to this type from the input type.
source§impl PartialEq for RawBrandedStructSchema
impl PartialEq for RawBrandedStructSchema
impl Copy for RawBrandedStructSchema
impl Eq for RawBrandedStructSchema
Auto Trait Implementations§
impl RefUnwindSafe for RawBrandedStructSchema
impl Send for RawBrandedStructSchema
impl Sync for RawBrandedStructSchema
impl Unpin for RawBrandedStructSchema
impl UnwindSafe for RawBrandedStructSchema
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