pub struct SemaId(pub u32);Expand description
Opaque handle to a resolved Sema entity (scope / decl / function info).
The AST only stores the raw index in a Cell; the sema crate wraps it
in the typed newtypes of its ids module and owns the interpretation.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for SemaId
impl Eq for SemaId
impl StructuralPartialEq for SemaId
Auto Trait Implementations§
impl Freeze for SemaId
impl RefUnwindSafe for SemaId
impl Send for SemaId
impl Sync for SemaId
impl Unpin for SemaId
impl UnsafeUnpin for SemaId
impl UnwindSafe for SemaId
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