Enum nstd_sys::core::result::NSTDResult
source · #[repr(C)]
pub enum NSTDResult<T, E> {
Ok(T),
Err(E),
}Available on crate feature
nstd_core only.Expand description
Defines a “result” type with success and error variants.
Variants
Ok(T)
The success variant.
Err(E)
The error variant.
Auto Trait Implementations
impl<T, E> RefUnwindSafe for NSTDResult<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for NSTDResult<T, E>where
E: Send,
T: Send,
impl<T, E> Sync for NSTDResult<T, E>where
E: Sync,
T: Sync,
impl<T, E> Unpin for NSTDResult<T, E>where
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for NSTDResult<T, E>where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more