#[repr(C)]pub enum EmptyResult {
Ok,
Error(Error),
}
Expand description
Describes the result of a function which may return nothing if everything
was Ok, or return an Error
if something went wrong.
This is not a standard Rust Result
because they are not #[repr(C)]
.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmptyResult
impl RefUnwindSafe for EmptyResult
impl Send for EmptyResult
impl Sync for EmptyResult
impl Unpin for EmptyResult
impl UnwindSafe for EmptyResult
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