pub struct SmartPointerVTableBuilder { /* private fields */ }Expand description
Builder for creating a SmartPointerVTable.
Implementations§
Source§impl SmartPointerVTableBuilder
impl SmartPointerVTableBuilder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SmartPointerVTableBuilder with all fields set to None.
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_fn: NewIntoFn) -> Self
pub const fn new_into_fn(self, new_fn: NewIntoFn) -> Self
Sets the new_into function.
Sourcepub const fn build(self) -> SmartPointerVTable
pub const fn build(self) -> SmartPointerVTable
Builds a SmartPointerVTable from the provided configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmartPointerVTableBuilder
impl RefUnwindSafe for SmartPointerVTableBuilder
impl Send for SmartPointerVTableBuilder
impl Sync for SmartPointerVTableBuilder
impl Unpin for SmartPointerVTableBuilder
impl UnwindSafe for SmartPointerVTableBuilder
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