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