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 moresource§impl Debug for TypeBoundSpec
impl Debug for TypeBoundSpec
source§impl Display for TypeBoundSpec
impl Display for TypeBoundSpec
source§impl FromIterator<TypeBoundSpec> for TypeBoundSpecs
impl FromIterator<TypeBoundSpec> for TypeBoundSpecs
source§fn from_iter<I: IntoIterator<Item = TypeBoundSpec>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = TypeBoundSpec>>(iter: I) -> Self
Creates a value from an iterator. Read more