#[repr(C)]
pub enum NSTDOptionalStatus {
    NSTD_OPTIONAL_STATUS_NONE,
    NSTD_OPTIONAL_STATUS_SOME,
}
Available on crate feature nstd_core only.
Expand description

Describes an NSTDOptional variant.

Variants

NSTD_OPTIONAL_STATUS_NONE

No value.

NSTD_OPTIONAL_STATUS_SOME

“Some” initialized value.

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 returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.