pub struct Attribute {
pub span_range: Range<usize>,
pub key: Ident,
pub value: Option<Literal>,
}
Expand description
Represents an attribute with a key-value pair. It can have solely key without specified any value.
Fields§
§span_range: Range<usize>
The range of the span in the source text.
key: Ident
The key of the attribute.
value: Option<Literal>
The value associated with the attribute, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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