pub struct Value { /* private fields */ }Expand description
The right-hand side of a field’s =; pieces separated by #.
Implementations§
Source§impl Value
impl Value
Sourcepub fn macro_uses(&self) -> impl Iterator<Item = (String, TextRange)>
pub fn macro_uses(&self) -> impl Iterator<Item = (String, TextRange)>
The bare-macro uses inside this value: each LITERAL piece whose single
token is a WORD (an unquoted, unbraced name) is an @string reference. A
LITERAL wrapping a NUMBER is a literal number, not a macro use, and is
skipped. Yields (name, range) with the range of the LITERAL piece.
Trait Implementations§
Source§impl AstNode for Value
impl AstNode for Value
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl !UnwindSafe for Value
impl Freeze for Value
impl Unpin for Value
impl UnsafeUnpin 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