#[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

Drops the value pointed to by this. Read more
Returns the metadata of the T that this emplaces. Read more
Emplaces a value into a given slot within some memory region. Read more
Moves a value into a given slot within some memory region. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type for metadata in pointers and references to Self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.