pub struct EvaluatedArg {
pub name: Option<String>,
pub value: Value,
}Expand description
A single evaluated argument from a Relon call site, preserving its name if
it was passed as name=value.
Fields§
§name: Option<String>§value: ValueImplementations§
Source§impl EvaluatedArg
impl EvaluatedArg
Sourcepub fn positional(value: Value) -> Self
pub fn positional(value: Value) -> Self
Construct an unnamed (positional) argument. Saves the
EvaluatedArg { name: None, value: ... } boilerplate at call sites
that synthesize implicit-self / single-arg invocations.
Trait Implementations§
Source§impl Clone for EvaluatedArg
impl Clone for EvaluatedArg
Source§fn clone(&self) -> EvaluatedArg
fn clone(&self) -> EvaluatedArg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EvaluatedArg
impl RefUnwindSafe for EvaluatedArg
impl Send for EvaluatedArg
impl Sync for EvaluatedArg
impl Unpin for EvaluatedArg
impl UnsafeUnpin for EvaluatedArg
impl UnwindSafe for EvaluatedArg
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