pub enum Metadata {
Thin,
Length(usize),
Dyn(DynMetadata),
}
Expand description
Metadata
For thin pointers (i.e., when T: Sized), the metadata is () For slices, str, and dyn types this is nontrivial See: https://doc.rust-lang.org/std/ptr/trait.Pointee.html
TODO: This will eventually be replaced with <T as Pointee>::Metadata
.
Variants§
Thin
Length(usize)
Length in bytes for a str; length in items for a
Dyn(DynMetadata)
For ‘dyn’ types (not yet supported)
Implementations§
source§impl Metadata
impl Metadata
pub fn arrow_Length_0(self) -> usize
pub fn arrow_Dyn_0(self) -> DynMetadata
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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