Struct erg_parser::ast::NonDefaultParamSignature
source · pub struct NonDefaultParamSignature {
pub pat: ParamPattern,
pub t_spec: Option<TypeSpecWithOp>,
}
Expand description
Once the default_value is set to Some, all subsequent values must be Some
Fields§
§pat: ParamPattern
§t_spec: Option<TypeSpecWithOp>
Implementations§
Trait Implementations§
source§impl Clone for NonDefaultParamSignature
impl Clone for NonDefaultParamSignature
source§fn clone(&self) -> NonDefaultParamSignature
fn clone(&self) -> NonDefaultParamSignature
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 NonDefaultParamSignature
impl Debug for NonDefaultParamSignature
source§impl Display for NonDefaultParamSignature
impl Display for NonDefaultParamSignature
source§impl Hash for NonDefaultParamSignature
impl Hash for NonDefaultParamSignature
source§impl PartialEq<NonDefaultParamSignature> for NonDefaultParamSignature
impl PartialEq<NonDefaultParamSignature> for NonDefaultParamSignature
source§fn eq(&self, other: &NonDefaultParamSignature) -> bool
fn eq(&self, other: &NonDefaultParamSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.