[−][src]Enum agnes::field::Value
(Possibly missing) data value container.
Variants
Na
Indicates a missing (NA) value.
Exists(T)
Indicates an existing value.
Methods
impl<T> Value<T>
[src]
pub fn unwrap(self) -> T
[src]
Unwrap a Value
, revealing the data contained within. Panics if called on an Na
value.
pub fn unwrap_or(self, def: T) -> T
[src]
Unwrap a Value
, returning the contained value or a default.
pub fn unwrap_or_else<F>(self, f: F) -> T where
F: FnOnce() -> T,
[src]
F: FnOnce() -> T,
Unwrap a Value
, returning the contained value or a default computed from a closure.
pub fn exists(&self) -> bool
[src]
Test if a Value
contains a value.
pub fn is_na(&self) -> bool
[src]
Test if a Value
is NA.
pub fn as_ref(&self) -> Value<&T>
[src]
Returns a Value
which contains a reference to the original underlying datum.
pub fn map<U, F: FnMut(T) -> U>(self, f: F) -> Value<U>
[src]
Applies function f
if this Value
exists.
impl<'a, T: Clone> Value<&'a T>
[src]
pub fn cloned(self) -> Value<T>
[src]
Create a owner Value
out of a reference-holding Value
using clone()
.
Trait Implementations
impl<T: Copy> Copy for Value<T>
[src]
impl<T: Clone> Clone for Value<T>
[src]
fn clone(&self) -> Value<T>
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq<Value<T>> for Value<T>
[src]
impl<'a, T> PartialEq<T> for Value<&'a T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn eq(&self, other: &T) -> bool
[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: PartialOrd> PartialOrd<Value<T>> for Value<T>
[src]
fn partial_cmp(&self, other: &Value<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Value<T>) -> bool
[src]
fn le(&self, other: &Value<T>) -> bool
[src]
fn gt(&self, other: &Value<T>) -> bool
[src]
fn ge(&self, other: &Value<T>) -> bool
[src]
impl<'a, T> PartialOrd<T> for Value<&'a T> where
T: PartialOrd<T>,
[src]
T: PartialOrd<T>,
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
#[must_use]
default fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
default fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
default fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
default fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Eq> Eq for Value<T>
[src]
impl<T> Into<Option<T>> for Value<T>
[src]
impl<T> From<T> for Value<T>
[src]
impl<'a, T> From<Value<&'a T>> for Value<T> where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<T> From<Option<T>> for Value<T>
[src]
impl<T: Ord> Ord for Value<T>
[src]
fn cmp(&self, other: &Value<T>) -> Ordering
[src]
default fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
default fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
default fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl<T> Display for Value<T> where
T: Display,
[src]
T: Display,
impl<'a, T: Hash> Hash for Value<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
default fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T, U> Add<Value<U>> for Value<T> where
T: Add<U>,
[src]
T: Add<U>,
type Output = Value<<T as Add<U>>::Output>
The resulting type after applying the +
operator.
fn add(self, rhs: Value<U>) -> Self::Output
[src]
impl<T, U> Sub<Value<U>> for Value<T> where
T: Sub<U>,
[src]
T: Sub<U>,
type Output = Value<<T as Sub<U>>::Output>
The resulting type after applying the -
operator.
fn sub(self, rhs: Value<U>) -> Self::Output
[src]
impl<T, U> Mul<Value<U>> for Value<T> where
T: Mul<U>,
[src]
T: Mul<U>,
type Output = Value<<T as Mul<U>>::Output>
The resulting type after applying the *
operator.
fn mul(self, rhs: Value<U>) -> Self::Output
[src]
impl<T, U> Div<Value<U>> for Value<T> where
T: Div<U>,
[src]
T: Div<U>,
type Output = Value<<T as Div<U>>::Output>
The resulting type after applying the /
operator.
fn div(self, rhs: Value<U>) -> Self::Output
[src]
impl<T> FromIterator<Value<T>> for FieldData<T> where
T: Debug + Default,
[src]
T: Debug + Default,
fn from_iter<I: IntoIterator<Item = Value<T>>>(iter: I) -> Self
[src]
impl<'a, T> FromIterator<Value<&'a T>> for FieldData<T> where
T: 'a + Debug + Default + Clone,
[src]
T: 'a + Debug + Default + Clone,
fn from_iter<I: IntoIterator<Item = Value<&'a T>>>(iter: I) -> Self
[src]
impl<T: Debug> Debug for Value<T>
[src]
impl<'a, T> Serialize for Value<&'a T> where
T: Serialize,
[src]
T: Serialize,
Auto Trait Implementations
Blanket Implementations
impl<T> IntoLabeled for T
[src]
impl<T> HasLabels for T
[src]
impl<Needle, Haystack> HasLabels for Haystack where
Haystack: Member<Needle, IsMember = B1>,
Needle: Label,
[src]
Haystack: Member<Needle, IsMember = B1>,
Needle: Label,
impl<O, U> Offset for U where
U: Add<O>,
[src]
U: Add<O>,
impl<Frames, Store> JoinIntoStore for Frames
[src]
type Output = Store
The output type after augmenting Store
.
fn join_into_store(&Self, Store, &[usize]) -> Result<Store, AgnesError>
[src]
impl<Frames> AssocDataIndexCons for Frames
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Same for T
[src]
type Output = T
Should always be Self