Enum erg_compiler::varinfo::VarKind
source · [−]pub enum VarKind {
Defined(DefId),
Declared,
Parameter {
def_id: DefId,
idx: ParamIdx,
default: DefaultInfo,
},
Auto,
FixedAuto,
DoesNotExist,
Builtin,
}
Variants
Defined(DefId)
Declared
Parameter
Auto
FixedAuto
DoesNotExist
Builtin
Implementations
sourceimpl VarKind
impl VarKind
pub const fn parameter(def_id: DefId, idx: ParamIdx, default: DefaultInfo) -> Self
pub const fn idx(&self) -> Option<&ParamIdx>
pub const fn has_default(&self) -> bool
pub const fn is_parameter(&self) -> bool
pub const fn is_nested_param(&self) -> bool
Trait Implementations
impl Eq for VarKind
impl StructuralEq 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
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