pub enum Argument {
Bracket(BracketArgument),
Quoted(String),
Unquoted(String),
InlineComment(Comment),
}Expand description
A single argument (or inline comment) in an argument list.
Variants§
Bracket(BracketArgument)
[[...]], [=[...]=], etc. Content is verbatim.
Quoted(String)
"..." — includes the surrounding quotes verbatim.
Unquoted(String)
Any other token — unquoted argument, variable ref, generator expr.
InlineComment(Comment)
A comment that appears inline between arguments.
Implementations§
Trait Implementations§
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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.