Struct agnes::masked::MaskedData [] [src]

pub struct MaskedData<T> { /* fields omitted */ }

Data vector along with bit-vector-based mask indicating whether or not values exist.

Methods

impl<T: PartialOrd> MaskedData<T>
[src]

[src]

Length of this data vector

[src]

Get the value at the given index. Return None if index is out of bounds, or a MaybeNa Object with the value (or indicator that value is missing).

[src]

Interpret MaskedData as a Vec of MaybeNa objects.

impl<T: Default + PartialOrd> MaskedData<T>
[src]

[src]

Create new empty MaskedData struct.

[src]

Create new masked data vector with single element.

[src]

Add a new value (or an indication of a missing one) to the data vector

[src]

Create a MaskedData struct from a vector of non-NA values. Resulting MaskedData struct will have no MaybeNa::Na values.

[src]

Create a MaskedData struct from a vector of masked values.

Trait Implementations

impl<T: Debug> Debug for MaskedData<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for MaskedData<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialOrd + Default, U: Into<T>> From<Vec<U>> for MaskedData<T>
[src]

[src]

Performs the conversion.

impl DataIndex<u64> for MaskedData<u64>
[src]

[src]

Returns the data (possibly NA) at the specified index, if it exists.

[src]

Returns the length of this data field.

impl DataIndex<i64> for MaskedData<i64>
[src]

[src]

Returns the data (possibly NA) at the specified index, if it exists.

[src]

Returns the length of this data field.

impl DataIndex<String> for MaskedData<String>
[src]

[src]

Returns the data (possibly NA) at the specified index, if it exists.

[src]

Returns the length of this data field.

impl DataIndex<bool> for MaskedData<bool>
[src]

[src]

Returns the data (possibly NA) at the specified index, if it exists.

[src]

Returns the length of this data field.

impl DataIndex<f64> for MaskedData<f64>
[src]

[src]

Returns the data (possibly NA) at the specified index, if it exists.

[src]

Returns the length of this data field.

impl ApplyToElem<IndexSelector> for MaskedData<u64>
[src]

[src]

Apply an ElemFn to an element selected with the provided Selector.

impl ApplyToElem<IndexSelector> for MaskedData<i64>
[src]

[src]

Apply an ElemFn to an element selected with the provided Selector.

impl ApplyToElem<IndexSelector> for MaskedData<String>
[src]

[src]

Apply an ElemFn to an element selected with the provided Selector.

impl ApplyToElem<IndexSelector> for MaskedData<bool>
[src]

[src]

Apply an ElemFn to an element selected with the provided Selector.

impl ApplyToElem<IndexSelector> for MaskedData<f64>
[src]

[src]

Apply an ElemFn to an element selected with the provided Selector.

impl ApplyToField<NilSelector> for MaskedData<u64>
[src]

[src]

Apply a FieldFn to a field selected with the provided Selector.

impl ApplyToField<NilSelector> for MaskedData<i64>
[src]

[src]

Apply a FieldFn to a field selected with the provided Selector.

impl ApplyToField<NilSelector> for MaskedData<String>
[src]

[src]

Apply a FieldFn to a field selected with the provided Selector.

impl ApplyToField<NilSelector> for MaskedData<bool>
[src]

[src]

Apply a FieldFn to a field selected with the provided Selector.

impl ApplyToField<NilSelector> for MaskedData<f64>
[src]

[src]

Apply a FieldFn to a field selected with the provided Selector.

impl<T: Serialize> Serialize for MaskedData<T>
[src]

[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

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

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