Struct erg_compiler::hir::DefaultParamSignature
source · pub struct DefaultParamSignature {
pub sig: NonDefaultParamSignature,
pub default_val: Expr,
}
Expand description
Once the default_value is set to Some, all subsequent values must be Some
Fields§
§sig: NonDefaultParamSignature
§default_val: Expr
Implementations§
Trait Implementations§
source§impl Clone for DefaultParamSignature
impl Clone for DefaultParamSignature
source§fn clone(&self) -> DefaultParamSignature
fn clone(&self) -> DefaultParamSignature
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 DefaultParamSignature
impl Debug for DefaultParamSignature
source§impl Display for DefaultParamSignature
impl Display for DefaultParamSignature
source§impl Hash for DefaultParamSignature
impl Hash for DefaultParamSignature
source§impl Locational for DefaultParamSignature
impl Locational for DefaultParamSignature
source§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl NoTypeDisplay for DefaultParamSignature
impl NoTypeDisplay for DefaultParamSignature
fn to_string_notype(&self) -> String
source§impl PartialEq<DefaultParamSignature> for DefaultParamSignature
impl PartialEq<DefaultParamSignature> for DefaultParamSignature
source§fn eq(&self, other: &DefaultParamSignature) -> bool
fn eq(&self, other: &DefaultParamSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.