Enum erg_parser::ast::TypeBoundSpec
source · pub enum TypeBoundSpec {
NonDefault {
lhs: Token,
spec: TypeSpecWithOp,
},
WithDefault {
lhs: Token,
spec: Box<TypeSpecWithOp>,
default: ConstExpr,
},
}
Variants§
Implementations§
source§impl TypeBoundSpec
impl TypeBoundSpec
pub fn non_default(lhs: Token, spec: TypeSpecWithOp) -> Self
Trait Implementations§
source§impl Clone for TypeBoundSpec
impl Clone for TypeBoundSpec
source§fn clone(&self) -> TypeBoundSpec
fn clone(&self) -> TypeBoundSpec
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 more