pub enum ExtractionMetadata {
Target {
type_id: TypeId,
offset: usize,
},
Nested {
type_id: TypeId,
offset: usize,
nested: &'static [ExtractionMetadata],
},
}Expand description
Metadata describing how to extract types from an entity structure.
Variants§
Implementations§
Source§impl ExtractionMetadata
impl ExtractionMetadata
Sourcepub const fn new_nested<T: Extractable>(
offset: usize,
nested: &'static [ExtractionMetadata],
) -> Self
pub const fn new_nested<T: Extractable>( offset: usize, nested: &'static [ExtractionMetadata], ) -> Self
Create metadata for a nested extractable type.
Auto Trait Implementations§
impl Freeze for ExtractionMetadata
impl RefUnwindSafe for ExtractionMetadata
impl Send for ExtractionMetadata
impl Sync for ExtractionMetadata
impl Unpin for ExtractionMetadata
impl UnwindSafe for ExtractionMetadata
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