pub struct StringDef {
pub name: SmolStr,
pub range: TextRange,
}Expand description
An @string{ name = value } macro definition.
Fields§
§name: SmolStrThe macro name, lowercased.
range: TextRangeThe byte range of the name (FIELD_NAME) node.
Trait Implementations§
impl Eq for StringDef
impl StructuralPartialEq for StringDef
Auto Trait Implementations§
impl Freeze for StringDef
impl RefUnwindSafe for StringDef
impl Send for StringDef
impl Sync for StringDef
impl Unpin for StringDef
impl UnsafeUnpin for StringDef
impl UnwindSafe for StringDef
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