#[repr(C)]pub struct Ok {
pub _address: u8,
}
Expand description
Empty struct, indicating success for operations that have no return value.
For example, if you declare another empty struct struct OutOfMemory {};
,
then Result<Ok, OutOfMemory>
represents either success or OOM.
Fields§
§_address: u8
Trait Implementations§
impl Copy for Ok
impl StructuralPartialEq for Ok
Auto Trait Implementations§
impl Freeze for Ok
impl RefUnwindSafe for Ok
impl Send for Ok
impl Sync for Ok
impl Unpin for Ok
impl UnwindSafe for Ok
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