Struct erg_compiler::hir::NonDefaultParamSignature
source · pub struct NonDefaultParamSignature {
pub raw: NonDefaultParamSignature,
pub vi: VarInfo,
pub t_spec_as_expr: Option<Expr>,
}
Expand description
Once the default_value is set to Some, all subsequent values must be Some
Fields§
§raw: NonDefaultParamSignature
§vi: VarInfo
§t_spec_as_expr: Option<Expr>
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 Locational for NonDefaultParamSignature
impl Locational for NonDefaultParamSignature
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 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 ==
.