Enum agnes::masked::MaybeNa [] [src]

pub enum MaybeNa<T: DataType> {
    Na,
    Exists(T),
}

Missing value container.

Variants

Indicates a missing (NA) value.

Indicates an existing value.

Methods

impl<T: DataType> MaybeNa<T>
[src]

[src]

Unwrap a MaybeNa, revealing the data contained within. Panics if called on an Na value.

[src]

Test if a MaybeNa contains a value.

[src]

Test if a MaybeNa is NA.

[src]

Returns a MaybeNa which contains a reference to the original underlying datum.

[src]

Applies function f if this MaybeNa exists.

impl<'a, T: DataType + Clone> MaybeNa<&'a T>
[src]

[src]

Create a owner MaybeNa out of a reference-holding MaybeNa using clone().

Trait Implementations

impl<T: Debug + DataType> Debug for MaybeNa<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Clone + DataType> Clone for MaybeNa<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialEq + DataType> PartialEq for MaybeNa<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Eq + DataType> Eq for MaybeNa<T>
[src]

impl<T: PartialOrd + DataType> PartialOrd for MaybeNa<T>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Ord + DataType> Ord for MaybeNa<T>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<T: ToString + DataType> ToString for MaybeNa<T>
[src]

[src]

Converts the given value to a String. Read more

impl<D: DataType> IntoMaybeNa for MaybeNa<D>
[src]

The DataType of the resulting MaybeNa type,

[src]

Convert this type into a MaybeNa.

Auto Trait Implementations

impl<T> Send for MaybeNa<T> where
    T: Send

impl<T> Sync for MaybeNa<T> where
    T: Sync