Struct vtable::VOffset [−][src]
#[repr(C)]pub struct VOffset<Base, T: ?Sized + VTableMeta, PinFlag = NotPinned> { /* fields omitted */ }
Expand description
Represents an offset to a field of type matching the vtable, within the Base container structure.
Implementations
Apply this offset to a reference to the base to obtain a VRef
with the same
lifetime as the base lifetime
Apply this offset to a reference to the base to obtain a VRefMut
with the same
lifetime as the base lifetime
Create an new VOffset from a [FieldOffset
] where the target type implement the
HasStaticVTable
trait.
Trait Implementations
Auto Trait Implementations
impl<Base, T: ?Sized, PinFlag> RefUnwindSafe for VOffset<Base, T, PinFlag> where
PinFlag: RefUnwindSafe,
<T as VTableMeta>::VTable: RefUnwindSafe,
impl<Base, T: ?Sized, PinFlag> Send for VOffset<Base, T, PinFlag> where
PinFlag: Send,
<T as VTableMeta>::VTable: Sync,
impl<Base, T: ?Sized, PinFlag> Sync for VOffset<Base, T, PinFlag> where
PinFlag: Sync,
<T as VTableMeta>::VTable: Sync,
impl<Base, T: ?Sized, PinFlag> UnwindSafe for VOffset<Base, T, PinFlag> where
PinFlag: UnwindSafe,
<T as VTableMeta>::VTable: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more