pub struct Type<'hir> {
pub id: HirId,
pub kind: TypeKind<'hir>,
}Fields§
§id: HirId§kind: TypeKind<'hir>Implementations§
Source§impl Type<'_>
impl Type<'_>
pub const I8: Self
pub const I16: Self
pub const I32: Self
pub const I64: Self
pub const U8: Self
pub const U16: Self
pub const U32: Self
pub const U64: Self
pub const F32: Self
pub const F64: Self
pub const CHAR: Self
pub const BOOL: Self
pub const EMPTY: Self
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<'hir> HirNode<'hir> for Type<'hir>
impl<'hir> HirNode<'hir> for Type<'hir>
fn get_hir_id(&self) -> HirId
fn get_hir_node_kind(&'hir self) -> HirNodeKind<'hir>
fn set_hir_id(&mut self, id: HirId)
impl Eq for Type<'_>
Auto Trait Implementations§
impl<'hir> Freeze for Type<'hir>
impl<'hir> !RefUnwindSafe for Type<'hir>
impl<'hir> !Send for Type<'hir>
impl<'hir> !Sync for Type<'hir>
impl<'hir> Unpin for Type<'hir>
impl<'hir> !UnwindSafe for Type<'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