pub struct PointerVTableBuilder { /* private fields */ }
Expand description
Builder for creating a PointerVTable
.
Implementations§
Source§impl PointerVTableBuilder
impl PointerVTableBuilder
Sourcepub const fn upgrade_into_fn(self, upgrade_into_fn: UpgradeIntoFn) -> Self
pub const fn upgrade_into_fn(self, upgrade_into_fn: UpgradeIntoFn) -> Self
Sets the try_upgrade
function.
Sourcepub const fn downgrade_into_fn(self, downgrade_into_fn: DowngradeIntoFn) -> Self
pub const fn downgrade_into_fn(self, downgrade_into_fn: DowngradeIntoFn) -> Self
Sets the downgrade
function.
Sourcepub const fn new_into_fn(self, new_into_fn: NewIntoFn) -> Self
pub const fn new_into_fn(self, new_into_fn: NewIntoFn) -> Self
Sets the new_into
function.
Sourcepub const fn slice_builder_vtable(
self,
slice_builder_vtable: &'static SliceBuilderVTable,
) -> Self
pub const fn slice_builder_vtable( self, slice_builder_vtable: &'static SliceBuilderVTable, ) -> Self
Sets the slice_builder_vtable
function.
Sourcepub const fn build(self) -> PointerVTable
pub const fn build(self) -> PointerVTable
Builds a PointerVTable
from the provided configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PointerVTableBuilder
impl RefUnwindSafe for PointerVTableBuilder
impl Send for PointerVTableBuilder
impl Sync for PointerVTableBuilder
impl Unpin for PointerVTableBuilder
impl UnwindSafe for PointerVTableBuilder
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