pub struct Entry<'t, 'a> { /* private fields */ }
Implementations§
Source§impl<'t, 'a> Entry<'t, 'a>
impl<'t, 'a> Entry<'t, 'a>
pub const fn new(table: &'t Table<'a>, id: Handle) -> Self
pub const fn id(&self) -> Handle
pub fn inner(&self) -> &Table<'a>
pub const fn with_id(&self, id: Handle) -> Entry<'_, 'a>
pub const fn root(&self) -> Handle
pub fn kind(&self) -> Option<&NodeKind>
pub fn parent(&self) -> Option<Entry<'_, 'a>>
pub fn children(&self) -> Option<&HashMap<Sym, Handle>>
pub fn imports(&self) -> Option<&HashMap<Sym, Handle>>
pub fn ty(&self) -> Option<&TypeKind>
pub fn span(&self) -> Option<&Span>
pub fn meta(&self) -> Option<&'a [Meta]>
pub fn source(&self) -> Option<&Source<'a>>
pub fn impl_target(&self) -> Option<Entry<'_, 'a>>
pub fn selfty(&self) -> Option<Entry<'_, 'a>>
pub fn name(&self) -> Option<Sym>
Trait Implementations§
Auto Trait Implementations§
impl<'t, 'a> Freeze for Entry<'t, 'a>
impl<'t, 'a> RefUnwindSafe for Entry<'t, 'a>
impl<'t, 'a> Send for Entry<'t, 'a>
impl<'t, 'a> Sync for Entry<'t, 'a>
impl<'t, 'a> Unpin for Entry<'t, 'a>
impl<'t, 'a> UnwindSafe for Entry<'t, 'a>
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