Struct erg_compiler::varinfo::VarInfo
source · pub struct VarInfo {
pub t: Type,
pub muty: Mutability,
pub vis: Visibility,
pub kind: VarKind,
pub comptime_decos: Option<Set<Str>>,
pub impl_of: Option<Type>,
pub py_name: Option<Str>,
}
Expand description
Has information about the type, variability, visibility, and where the variable was defined (or declared, generated)
Fields
t: Type
muty: Mutability
vis: Visibility
kind: VarKind
comptime_decos: Option<Set<Str>>
impl_of: Option<Type>
py_name: Option<Str>
Implementations
sourceimpl VarInfo
impl VarInfo
pub const ILLEGAL: &'static Self = _
pub const fn const_default() -> Self
pub const fn new(
t: Type,
muty: Mutability,
vis: Visibility,
kind: VarKind,
comptime_decos: Option<Set<Str>>,
impl_of: Option<Type>,
py_name: Option<Str>
) -> 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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