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>>,
}
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>>
Implementations
Trait Implementations
sourceimpl HasType for VarInfo
impl HasType for VarInfo
fn ref_t(&self) -> &Type
fn ref_mut_t(&mut self) -> &mut Type
fn signature_t(&self) -> Option<&Type>
fn signature_mut_t(&mut self) -> Option<&mut Type>
fn t(&self) -> Type
fn inner_ts(&self) -> Vec<Type, Global>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
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