pub struct PointerVTable<'shape> {
pub upgrade_into_fn: Option<UpgradeIntoFn>,
pub downgrade_into_fn: Option<DowngradeIntoFn>,
pub borrow_fn: Option<BorrowFn>,
pub new_into_fn: Option<NewIntoFn>,
pub lock_fn: Option<LockFn>,
pub read_fn: Option<ReadFn>,
pub write_fn: Option<WriteFn>,
pub slice_builder_vtable: Option<&'shape SliceBuilderVTable>,
}Expand description
Functions for interacting with a pointer
Fields§
§upgrade_into_fn: Option<UpgradeIntoFn>See UpgradeIntoFn
downgrade_into_fn: Option<DowngradeIntoFn>See DowngradeIntoFn
borrow_fn: Option<BorrowFn>See BorrowFn
new_into_fn: Option<NewIntoFn>See NewIntoFn
lock_fn: Option<LockFn>See LockFn
read_fn: Option<ReadFn>See ReadFn
write_fn: Option<WriteFn>See WriteFn
slice_builder_vtable: Option<&'shape SliceBuilderVTable>Implementations§
Source§impl<'shape> PointerVTable<'shape>
impl<'shape> PointerVTable<'shape>
Sourcepub const fn builder() -> PointerVTableBuilder<'shape>
pub const fn builder() -> PointerVTableBuilder<'shape>
Creates a new PointerVTableBuilder with all fields set to None.
Trait Implementations§
Source§impl<'shape> Clone for PointerVTable<'shape>
impl<'shape> Clone for PointerVTable<'shape>
Source§fn clone(&self) -> PointerVTable<'shape>
fn clone(&self) -> PointerVTable<'shape>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'shape> Debug for PointerVTable<'shape>
impl<'shape> Debug for PointerVTable<'shape>
impl<'shape> Copy for PointerVTable<'shape>
Auto Trait Implementations§
impl<'shape> Freeze for PointerVTable<'shape>
impl<'shape> RefUnwindSafe for PointerVTable<'shape>
impl<'shape> Send for PointerVTable<'shape>
impl<'shape> Sync for PointerVTable<'shape>
impl<'shape> Unpin for PointerVTable<'shape>
impl<'shape> UnwindSafe for PointerVTable<'shape>
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