Enum erg_compiler::context::instantiate_spec::ParamKind
source · pub enum ParamKind {
NonDefault,
Default(Type),
VarParams,
KwVarParams,
}
Variants§
Implementations§
source§impl ParamKind
impl ParamKind
pub const fn is_var_params(&self) -> bool
pub const fn is_kw_var_params(&self) -> bool
pub const fn is_default(&self) -> bool
pub const fn default_info(&self) -> DefaultInfo
Trait Implementations§
source§impl PartialEq for ParamKind
impl PartialEq for ParamKind
impl Eq for ParamKind
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnwindSafe for ParamKind
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