pub struct Ident {
pub pos: Pos,
pub name: String,
pub entity: IdentEntity,
}
Fields§
§pos: Pos
§name: String
§entity: IdentEntity
Implementations§
Source§impl Ident
impl Ident
pub fn blank(pos: Pos) -> Ident
pub fn true_(pos: Pos) -> Ident
pub fn with_str(pos: Pos, s: &str) -> Ident
pub fn end(&self) -> Pos
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 Freeze for Ident
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