pub enum ValueContainer {
Value(Value),
Reference(Reference),
}Variants§
Implementations§
Trait Implementations§
Source§impl Add<&ValueContainer> for &ValueContainer
impl Add<&ValueContainer> for &ValueContainer
Source§type Output = Result<ValueContainer, ValueError>
type Output = Result<ValueContainer, ValueError>
The resulting type after applying the
+ operator.Source§impl Add for ValueContainer
impl Add for ValueContainer
Source§type Output = Result<ValueContainer, ValueError>
type Output = Result<ValueContainer, ValueError>
The resulting type after applying the
+ operator.Source§impl Clone for ValueContainer
impl Clone for ValueContainer
Source§fn clone(&self) -> ValueContainer
fn clone(&self) -> ValueContainer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValueContainer
impl Debug for ValueContainer
Source§impl<'a> Deserialize<'a> for ValueContainer
impl<'a> Deserialize<'a> for ValueContainer
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ValueContainer
impl Display for ValueContainer
Source§impl Hash for ValueContainer
impl Hash for ValueContainer
Source§impl Identity for ValueContainer
Identity checks only returns true if two references are identical.
Values are never identical to references or other values.
impl Identity for ValueContainer
Identity checks only returns true if two references are identical. Values are never identical to references or other values.
Source§impl PartialEq for ValueContainer
Partial equality for ValueContainer is identical to Hash behavior:
Identical references are partially equal, value-equal values are also partially equal.
A pointer and a value are never partially equal.
impl PartialEq for ValueContainer
Partial equality for ValueContainer is identical to Hash behavior: Identical references are partially equal, value-equal values are also partially equal. A pointer and a value are never partially equal.
Source§impl Serialize for ValueContainer
impl Serialize for ValueContainer
Source§impl StructuralEq for ValueContainer
Structural equality checks the structural equality of the underlying values, collapsing
references to their current resolved values.
impl StructuralEq for ValueContainer
Structural equality checks the structural equality of the underlying values, collapsing references to their current resolved values.
Source§fn structural_eq(&self, other: &Self) -> bool
fn structural_eq(&self, other: &Self) -> bool
Check if two values are equal, ignoring the type.
Source§impl Sub<&ValueContainer> for &ValueContainer
impl Sub<&ValueContainer> for &ValueContainer
Source§type Output = Result<ValueContainer, ValueError>
type Output = Result<ValueContainer, ValueError>
The resulting type after applying the
- operator.Source§impl Sub for ValueContainer
impl Sub for ValueContainer
Source§type Output = Result<ValueContainer, ValueError>
type Output = Result<ValueContainer, ValueError>
The resulting type after applying the
- operator.Source§impl TryFrom<DatexExpression> for ValueContainer
impl TryFrom<DatexExpression> for ValueContainer
Source§impl ValueEq for ValueContainer
Value equality checks the value equality of the underlying values, collapsing
references to their current resolved values.
impl ValueEq for ValueContainer
Value equality checks the value equality of the underlying values, collapsing references to their current resolved values.
impl Eq for ValueContainer
Auto Trait Implementations§
impl Freeze for ValueContainer
impl !RefUnwindSafe for ValueContainer
impl !Send for ValueContainer
impl !Sync for ValueContainer
impl Unpin for ValueContainer
impl !UnwindSafe for ValueContainer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more