pub struct Ident {
pub value: String,
pub quote_style: Option<char>,
}Expand description
An identifier, decomposed into its value or character data and the quote style.
Fields§
§value: StringThe value of the identifier without quotes.
quote_style: Option<char>The starting quote if any. Valid quote characters are the single quote, double quote, backtick, and opening square bracket.
Implementations§
Trait Implementations§
impl Eq for Ident
Source§impl Ord for Ident
impl Ord for Ident
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Ident
impl PartialOrd for Ident
impl StructuralPartialEq for Ident
Auto Trait Implementations§
impl Freeze for Ident
impl RefUnwindSafe for Ident
impl Send for Ident
impl Sync for Ident
impl Unpin for Ident
impl UnsafeUnpin for Ident
impl UnwindSafe for Ident
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