pub struct Ident {
pub pos: usize,
pub name: String,
pub entity: IdentEntity,
}
Fields§
§pos: usize
§name: String
§entity: IdentEntity
Implementations§
source§impl Ident
impl Ident
pub fn blank(pos: usize) -> Ident
pub fn true_(pos: usize) -> Ident
pub fn with_str(pos: usize, s: &str) -> Ident
pub fn end(&self) -> usize
pub fn entity_obj<'a>(&self, objs: &'a AstObjects) -> Option<&'a Entity>
pub fn is_blank(&self) -> bool
pub fn is_exported(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Ident
impl Send for Ident
impl Sync for Ident
impl Unpin 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