#[repr(C)]pub struct ResultVTable {
pub is_ok: unsafe extern "C" fn(PtrConst) -> bool,
pub get_ok: unsafe extern "C" fn(PtrConst) -> *const u8,
pub get_err: unsafe extern "C" fn(PtrConst) -> *const u8,
pub init_ok: unsafe extern "C" fn(PtrUninit, PtrMut) -> PtrMut,
pub init_err: unsafe extern "C" fn(PtrUninit, PtrMut) -> PtrMut,
}Expand description
Virtual table for Result<T, E>
Fields§
§is_ok: unsafe extern "C" fn(PtrConst) -> boolcf. ResultIsOkFn
get_ok: unsafe extern "C" fn(PtrConst) -> *const u8cf. ResultGetOkFn
get_err: unsafe extern "C" fn(PtrConst) -> *const u8cf. ResultGetErrFn
init_ok: unsafe extern "C" fn(PtrUninit, PtrMut) -> PtrMutcf. ResultInitOkFn
init_err: unsafe extern "C" fn(PtrUninit, PtrMut) -> 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 UnsafeUnpin 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