pub struct Variable<V> {
pub name: VariableName,
pub value: V,
}Fields§
§name: VariableName§value: VImplementations§
Trait Implementations§
Source§impl<V> FromIterator<Variable<V>> for Variables<V>where
V: TypedVariable,
impl<V> FromIterator<Variable<V>> for Variables<V>where
V: TypedVariable,
Source§impl<V> TypedVariable for Variable<V>
impl<V> TypedVariable for Variable<V>
Source§impl<V> ValueParserFactory for Variable<V>
impl<V> ValueParserFactory for Variable<V>
Source§type Parser = VariableParser<Variable<V>>
type Parser = VariableParser<Variable<V>>
Generated parser, usually
ValueParser. Read moreSource§fn value_parser() -> Self::Parser
fn value_parser() -> Self::Parser
Create the specified
Self::Parserimpl<V: Eq> Eq for Variable<V>
impl<V: Send> Send for Variable<V>
impl<V> StructuralPartialEq for Variable<V>
impl<V: Sync> Sync for Variable<V>
Auto Trait Implementations§
impl<V> Freeze for Variable<V>where
V: Freeze,
impl<V> RefUnwindSafe for Variable<V>where
V: RefUnwindSafe,
impl<V> Unpin for Variable<V>where
V: Unpin,
impl<V> UnwindSafe for Variable<V>where
V: UnwindSafe,
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<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