pub struct Ident {
pub line: usize,
pub range: Range<usize>,
pub name: String,
pub item: bool,
}Expand description
One identifier: its 0-based line, its byte range within that line, and the name itself.
Fields§
§line: usize§range: Range<usize>§name: String§item: boolThe parse names a function, method or type here: a definition or a call the grammar’s tags query marks, or a type position.
Trait Implementations§
impl Eq 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