pub struct HirBase<'hir> {
pub hir_id: HirId,
pub parent: Option<HirId>,
pub node: Node<'hir>,
pub kind: HirKind,
pub field_id: u16,
pub children: Vec<HirId>,
}Fields§
§hir_id: HirId§parent: Option<HirId>§node: Node<'hir>§kind: HirKind§field_id: u16§children: Vec<HirId>Implementations§
Source§impl<'hir> HirBase<'hir>
impl<'hir> HirBase<'hir>
pub fn opt_child_by_fields( &self, unit: CompileUnit<'hir>, fields_id: &[u16], ) -> Option<HirNode<'hir>>
pub fn opt_child_by_field( &self, unit: CompileUnit<'hir>, field_id: u16, ) -> Option<HirNode<'hir>>
Trait Implementations§
Auto Trait Implementations§
impl<'hir> Freeze for HirBase<'hir>
impl<'hir> RefUnwindSafe for HirBase<'hir>
impl<'hir> Send for HirBase<'hir>
impl<'hir> Sync for HirBase<'hir>
impl<'hir> Unpin for HirBase<'hir>
impl<'hir> UnwindSafe for HirBase<'hir>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more