pub struct Name {
pub text: Vec<u8>,
pub folded: Vec<u8>,
pub quote: QuoteForm,
pub span: Span,
}Expand description
An interned identifier: what was written and what it matches.
Fields§
§text: Vec<u8>The identifier exactly as written, with quoting removed.
folded: Vec<u8>The ASCII-folded key names are compared by.
quote: QuoteFormHow it was quoted, which decides whether it may become a string.
span: SpanWhere it came from.
Implementations§
Trait Implementations§
impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnsafeUnpin for Name
impl UnwindSafe for Name
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