#[repr(u8)]
pub enum RelOption<T> {
None,
Some(T),
}
Expand description
A relative counterpart to Option
.
Variants
None
No value.
Some(T)
Some value of type T
.
Trait Implementations
impl<T> Portable for RelOption<T>where
T: Portable,
Auto Trait Implementations
impl<T> RefUnwindSafe for RelOption<T>where
T: RefUnwindSafe,
impl<T> Send for RelOption<T>where
T: Send,
impl<T> Sync for RelOption<T>where
T: Sync,
impl<T> Unpin for RelOption<T>where
T: Unpin,
impl<T> UnwindSafe for RelOption<T>where
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