#[repr(C)]pub struct ResultVTable {
pub is_ok: unsafe fn(PtrConst) -> bool,
pub get_ok: unsafe fn(PtrConst) -> Option<PtrConst>,
pub get_err: unsafe fn(PtrConst) -> Option<PtrConst>,
pub init_ok: unsafe fn(PtrUninit, PtrConst) -> PtrMut,
pub init_err: unsafe fn(PtrUninit, PtrConst) -> PtrMut,
}Expand description
Virtual table for Result<T, E>
Fields§
§is_ok: unsafe fn(PtrConst) -> boolcf. ResultIsOkFn
get_ok: unsafe fn(PtrConst) -> Option<PtrConst>cf. ResultGetOkFn
get_err: unsafe fn(PtrConst) -> Option<PtrConst>cf. ResultGetErrFn
init_ok: unsafe fn(PtrUninit, PtrConst) -> PtrMutcf. ResultInitOkFn
init_err: unsafe fn(PtrUninit, PtrConst) -> PtrMutcf. ResultInitErrFn
Implementations§
Source§impl ResultVTable
impl ResultVTable
Sourcepub const fn builder() -> ResultVTableBuilder
pub const fn builder() -> ResultVTableBuilder
Creates a new builder for this vtable
Trait Implementations§
Source§impl Clone for ResultVTable
impl Clone for ResultVTable
Source§fn clone(&self) -> ResultVTable
fn clone(&self) -> ResultVTable
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 ResultVTable
impl Debug for ResultVTable
impl Copy for ResultVTable
Auto Trait Implementations§
impl Freeze for ResultVTable
impl RefUnwindSafe for ResultVTable
impl Send for ResultVTable
impl Sync for ResultVTable
impl Unpin for ResultVTable
impl UnwindSafe for ResultVTable
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