pub struct Arg(/* private fields */);Implementations§
Source§impl Arg
impl Arg
Sourcepub fn eq_token(&self) -> Option<SyntaxToken<RLanguage>>
pub fn eq_token(&self) -> Option<SyntaxToken<RLanguage>>
The = token of a named argument (name = value), if any.
Sourcepub fn name_token(&self) -> Option<SyntaxToken<RLanguage>>
pub fn name_token(&self) -> Option<SyntaxToken<RLanguage>>
The name token of a named argument — the IDENT/STRING immediately
before =. None for a positional argument.
Sourcepub fn name(&self) -> Option<SmolStr>
pub fn name(&self) -> Option<SmolStr>
The argument name, unquoted. None for a positional argument.
pub fn is_named(&self) -> bool
Sourcepub fn value(&self) -> Option<SyntaxElement<RLanguage>>
pub fn value(&self) -> Option<SyntaxElement<RLanguage>>
The value element: for name = value, the first non-trivia element after
=; for a positional argument, its first non-trivia element.
Trait Implementations§
impl Eq for Arg
impl StructuralPartialEq for Arg
Auto Trait Implementations§
impl !RefUnwindSafe for Arg
impl !Send for Arg
impl !Sync for Arg
impl !UnwindSafe for Arg
impl Freeze for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
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