pub struct RawBrandedStructSchema {
pub generic: &'static RawStructSchema,
pub field_types: fn(u16) -> Type,
pub annotation_types: fn(Option<u16>, u32) -> Type,
pub type_id: TypeId,
}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 RawStructSchemaThe unbranded base schema.
field_types: fn(u16) -> TypeMap from field index (not ordinal) to Type.
annotation_types: fn(Option<u16>, u32) -> TypeMap from (maybe field index, annotation index) to the Type of the value held by that annotation.
type_id: TypeIdUsed to compare schemas at runtime - the TypeId of the Owned struct that this schema describes, including its branding.
Trait Implementations§
Source§impl Clone for RawBrandedStructSchema
impl Clone for RawBrandedStructSchema
impl Copy for RawBrandedStructSchema
Source§impl Debug for RawBrandedStructSchema
impl Debug for RawBrandedStructSchema
impl Eq 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 From<StructSchema> for RawBrandedStructSchema
impl From<StructSchema> for RawBrandedStructSchema
Source§fn from(value: StructSchema) -> Self
fn from(value: StructSchema) -> Self
Converts to this type from the input type.
Source§impl Hash for RawBrandedStructSchema
impl Hash for RawBrandedStructSchema
Auto Trait Implementations§
impl Freeze for RawBrandedStructSchema
impl RefUnwindSafe for RawBrandedStructSchema
impl Send for RawBrandedStructSchema
impl Sync for RawBrandedStructSchema
impl Unpin for RawBrandedStructSchema
impl UnsafeUnpin 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