pub struct ComponentFieldDescriptor {
pub name: &'static str,
pub ty: ComponentFieldType,
pub offset: usize,
}Expand description
Field descriptor emitted by external schema generators.
Fields§
§name: &'static strStable field name.
ty: ComponentFieldTypeEncoded field type.
offset: usizeByte offset inside the generated component blob.
Implementations§
Source§impl ComponentFieldDescriptor
impl ComponentFieldDescriptor
Sourcepub const fn new(
name: &'static str,
ty: ComponentFieldType,
offset: usize,
) -> Self
pub const fn new( name: &'static str, ty: ComponentFieldType, offset: usize, ) -> Self
Creates a generated field descriptor.
Sourcepub const fn end_offset(self) -> usize
pub const fn end_offset(self) -> usize
Returns the exclusive end offset.
Trait Implementations§
Source§impl Clone for ComponentFieldDescriptor
impl Clone for ComponentFieldDescriptor
Source§fn clone(&self) -> ComponentFieldDescriptor
fn clone(&self) -> ComponentFieldDescriptor
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 moreimpl Copy for ComponentFieldDescriptor
Source§impl Debug for ComponentFieldDescriptor
impl Debug for ComponentFieldDescriptor
impl Eq for ComponentFieldDescriptor
Source§impl PartialEq for ComponentFieldDescriptor
impl PartialEq for ComponentFieldDescriptor
impl StructuralPartialEq for ComponentFieldDescriptor
Auto Trait Implementations§
impl Freeze for ComponentFieldDescriptor
impl RefUnwindSafe for ComponentFieldDescriptor
impl Send for ComponentFieldDescriptor
impl Sync for ComponentFieldDescriptor
impl Unpin for ComponentFieldDescriptor
impl UnsafeUnpin for ComponentFieldDescriptor
impl UnwindSafe for ComponentFieldDescriptor
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