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§
source§impl NonDefaultParamSignature
impl NonDefaultParamSignature
pub const fn new(pat: ParamPattern, t_spec: Option<TypeSpecWithOp>) -> Self
pub const fn inspect(&self) -> Option<&Str>
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 more