pub enum Value<'a> {
Value(Value<Value<'a>>),
Label(GLLBlockLabel<'a>),
}Expand description
An extension of wagon_value::Value that adds GLLBlockLabel as a possible type.
Variants§
Trait Implementations§
impl<'a> Eq for Value<'a>
Source§impl<'a> From<Value<Value<'a>>> for Value<'a>
impl<'a> From<Value<Value<'a>>> for Value<'a>
Source§fn from(value: InnerValue<Value<'a>>) -> Self
fn from(value: InnerValue<Value<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq<Value<Value<'a>>> for Value<'a>
impl<'a> PartialEq<Value<Value<'a>>> for Value<'a>
Source§fn eq(&self, other: &InnerValue<Self>) -> bool
fn eq(&self, other: &InnerValue<Self>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for Value<'a>
impl<'a> PartialOrd for Value<'a>
Source§impl<'a> PartialOrd<Value<'a>> for Value<Value<'a>>
impl<'a> PartialOrd<Value<'a>> for Value<Value<'a>>
Source§impl<'a> PartialOrd<Value<Value<'a>>> for Value<'a>
impl<'a> PartialOrd<Value<Value<'a>>> for Value<'a>
Source§impl<'a> TryFrom<Value<'a>> for GLLBlockLabel<'a>
impl<'a> TryFrom<Value<'a>> for GLLBlockLabel<'a>
Source§impl<'a> Valueable for Value<'a>
impl<'a> Valueable for Value<'a>
Source§fn is_truthy(&self) -> InnerValueResult<bool, Self>
fn is_truthy(&self) -> InnerValueResult<bool, Self>
Source§fn to_float(&self) -> InnerValueResult<f32, Self>
fn to_float(&self) -> InnerValueResult<f32, Self>
Source§fn display_numerical(&self) -> InnerValueResult<String, Self>
fn display_numerical(&self) -> InnerValueResult<String, Self>
Get a string representation of the value, as if it were a number. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Value<'a>
impl<'a> !Send for Value<'a>
impl<'a> !Sync for Value<'a>
impl<'a> !UnwindSafe for Value<'a>
impl<'a> Freeze for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnsafeUnpin for Value<'a>
Blanket Implementations§
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§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> 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