pub struct ResultVTableBuilder { /* private fields */ }Expand description
Builder for the vtable
Implementations§
Source§impl ResultVTableBuilder
impl ResultVTableBuilder
Sourcepub const fn is_ok(self, value: ResultIsOkFn) -> Self
pub const fn is_ok(self, value: ResultIsOkFn) -> Self
Set the is_ok field
Sourcepub const fn get_ok(self, value: ResultGetOkFn) -> Self
pub const fn get_ok(self, value: ResultGetOkFn) -> Self
Set the get_ok field
Sourcepub const fn get_err(self, value: ResultGetErrFn) -> Self
pub const fn get_err(self, value: ResultGetErrFn) -> Self
Set the get_err field
Sourcepub const fn init_ok(self, value: ResultInitOkFn) -> Self
pub const fn init_ok(self, value: ResultInitOkFn) -> Self
Set the init_ok field
Sourcepub const fn init_err(self, value: ResultInitErrFn) -> Self
pub const fn init_err(self, value: ResultInitErrFn) -> Self
Set the init_err field
Sourcepub const fn build(self) -> ResultVTable
pub const fn build(self) -> ResultVTable
Trait Implementations§
Source§impl Clone for ResultVTableBuilder
impl Clone for ResultVTableBuilder
Source§fn clone(&self) -> ResultVTableBuilder
fn clone(&self) -> ResultVTableBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResultVTableBuilder
impl Debug for ResultVTableBuilder
impl Copy for ResultVTableBuilder
Auto Trait Implementations§
impl Freeze for ResultVTableBuilder
impl RefUnwindSafe for ResultVTableBuilder
impl Send for ResultVTableBuilder
impl Sync for ResultVTableBuilder
impl Unpin for ResultVTableBuilder
impl UnwindSafe for ResultVTableBuilder
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