#[repr(C)]pub struct ResultDef {
pub vtable: &'static ResultVTable,
pub t: &'static Shape,
pub e: &'static Shape,
}Expand description
Describes a Result — including a vtable to query and alter its state,
and the inner shapes (the T and E in Result<T, E>).
Fields§
§vtable: &'static ResultVTablevtable for interacting with the result
t: &'static Shapeshape of the Ok type
e: &'static Shapeshape of the Err type
Implementations§
Trait Implementations§
impl Copy for ResultDef
Auto Trait Implementations§
impl Freeze for ResultDef
impl RefUnwindSafe for ResultDef
impl Send for ResultDef
impl Sync for ResultDef
impl Unpin for ResultDef
impl UnwindSafe for ResultDef
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