Struct erg_compiler::varinfo::VarInfo
source · [−]pub struct VarInfo {
pub t: Type,
pub muty: Mutability,
pub vis: Visibility,
pub kind: VarKind,
}
Fields
t: Type
muty: Mutability
vis: Visibility
kind: VarKind
Implementations
sourceimpl VarInfo
impl VarInfo
pub const ILLEGAL: &'static Self = _
pub const fn new(t: Type, muty: Mutability, vis: Visibility, kind: VarKind) -> Self
pub fn same_id_as(&self, id: DefId) -> bool
Trait Implementations
impl Eq for VarInfo
impl StructuralEq for VarInfo
impl StructuralPartialEq for VarInfo
Auto Trait Implementations
impl !RefUnwindSafe for VarInfo
impl !Send for VarInfo
impl !Sync for VarInfo
impl Unpin for VarInfo
impl !UnwindSafe for VarInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more