pub struct Ident {
pub name: String,
pub span: Span,
}Expand description
A Java identifier.
Similar to proc_macro2::Ident in syn, but uses a String internally
since we are not in a procedural macro context.
Fields§
§name: String§span: SpanImplementations§
Trait Implementations§
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 Parse for Ident
impl Parse for Ident
Source§fn parse(input: &ParseStream<'_>) -> Result<Self>
fn parse(input: &ParseStream<'_>) -> Result<Self>
Parse this type from the given
ParseStream.Source§impl PartialOrd for Ident
impl PartialOrd for Ident
impl Eq 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