pub enum AssignmentValue {
String(LitStr),
Integer(LitInt),
Boolean(LitBool),
Group(Group),
}Expand description
A value appearing on the right-hand side of an = assignment.
Variants§
String(LitStr)
A string literal value.
Integer(LitInt)
An integer literal value.
Boolean(LitBool)
A boolean literal value, also used for bare flag arguments.
Group(Group)
A delimited token group value.
Trait Implementations§
Source§impl Clone for AssignmentValue
impl Clone for AssignmentValue
Source§fn clone(&self) -> AssignmentValue
fn clone(&self) -> AssignmentValue
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 moreSource§impl Debug for AssignmentValue
impl Debug for AssignmentValue
Source§impl Parse for AssignmentValue
impl Parse for AssignmentValue
Auto Trait Implementations§
impl !Send for AssignmentValue
impl !Sync for AssignmentValue
impl Freeze for AssignmentValue
impl RefUnwindSafe for AssignmentValue
impl Unpin for AssignmentValue
impl UnsafeUnpin for AssignmentValue
impl UnwindSafe for AssignmentValue
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