Enum erg_compiler::context::ClassDefType
source · pub enum ClassDefType {
Simple(Type),
ImplTrait {
class: Type,
impl_trait: Type,
},
}
Variants§
Implementations§
source§impl ClassDefType
impl ClassDefType
pub const fn impl_trait(class: Type, impl_trait: Type) -> Self
Trait Implementations§
source§impl Clone for ClassDefType
impl Clone for ClassDefType
source§fn clone(&self) -> ClassDefType
fn clone(&self) -> ClassDefType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClassDefType
impl Debug for ClassDefType
source§impl Display for ClassDefType
impl Display for ClassDefType
source§impl Hash for ClassDefType
impl Hash for ClassDefType
source§impl PartialEq<ClassDefType> for ClassDefType
impl PartialEq<ClassDefType> for ClassDefType
source§fn eq(&self, other: &ClassDefType) -> bool
fn eq(&self, other: &ClassDefType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.