Enum erg_compiler::varinfo::VarKind
source · pub enum VarKind {
Defined(DefId),
Declared,
InstanceAttr,
Parameter {
def_id: DefId,
var: bool,
default: DefaultInfo,
},
Auto,
FixedAuto,
DoesNotExist,
Builtin,
}
Variants§
Implementations§
source§impl VarKind
impl VarKind
pub const fn parameter(def_id: DefId, var: bool, default: DefaultInfo) -> Self
pub const fn nd_parameter(def_id: DefId) -> Self
pub const fn has_default(&self) -> bool
pub const fn is_parameter(&self) -> bool
pub const fn is_var_params(&self) -> bool
pub const fn is_defined(&self) -> bool
pub const fn can_capture(&self) -> bool
pub const fn does_not_exist(&self) -> bool
pub const fn is_builtin(&self) -> bool
pub const fn is_auto(&self) -> bool
pub const fn is_instance_attr(&self) -> bool
pub const fn display(&self) -> &'static str
Trait Implementations§
source§impl PartialEq for VarKind
impl PartialEq for VarKind
impl Eq for VarKind
impl StructuralPartialEq for VarKind
Auto Trait Implementations§
impl RefUnwindSafe for VarKind
impl Send for VarKind
impl Sync for VarKind
impl Unpin for VarKind
impl UnwindSafe for VarKind
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