pub struct StringUse {
pub name: SmolStr,
pub range: TextRange,
pub resolved: bool,
}Expand description
A use of an @string macro — a bare (unquoted, unbraced) name inside a field
value.
Fields§
§name: SmolStrThe referenced macro name, lowercased.
range: TextRangeThe byte range of the LITERAL piece.
resolved: booltrue when the name matches a @string definition in this file or a
predefined month macro; set by the resolve pass.
Trait Implementations§
impl Eq for StringUse
impl StructuralPartialEq for StringUse
Auto Trait Implementations§
impl Freeze for StringUse
impl RefUnwindSafe for StringUse
impl Send for StringUse
impl Sync for StringUse
impl Unpin for StringUse
impl UnsafeUnpin for StringUse
impl UnwindSafe for StringUse
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