pub enum Value {
EvaluationValue(EvaluationValue),
AssignmentValue(AssignmentValue),
}Expand description
The value associated with an argument, distinguishing values parsed in
evaluation position from those parsed on the right-hand side of an =.
Variants§
EvaluationValue(EvaluationValue)
A value supplied in evaluation position, e.g. name(group).
AssignmentValue(AssignmentValue)
A value supplied via assignment, e.g. name = value.
Implementations§
Source§impl Value
impl Value
Sourcepub fn to_token_stream(&self) -> TokenStream
pub fn to_token_stream(&self) -> TokenStream
Renders the underlying literal or group back into its token stream.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Value
impl !Sync for Value
impl Freeze for Value
impl RefUnwindSafe for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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