Struct erg_parser::ast::DefaultParamTySpec
source · pub struct DefaultParamTySpec {
pub param: ParamTySpec,
pub default: TypeSpec,
}
Fields§
§param: ParamTySpec
§default: TypeSpec
Implementations§
source§impl DefaultParamTySpec
impl DefaultParamTySpec
pub const fn new(param: ParamTySpec, default: TypeSpec) -> Self
Trait Implementations§
source§impl Clone for DefaultParamTySpec
impl Clone for DefaultParamTySpec
source§fn clone(&self) -> DefaultParamTySpec
fn clone(&self) -> DefaultParamTySpec
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 DefaultParamTySpec
impl Debug for DefaultParamTySpec
source§impl Display for DefaultParamTySpec
impl Display for DefaultParamTySpec
source§impl Hash for DefaultParamTySpec
impl Hash for DefaultParamTySpec
source§impl PartialEq<DefaultParamTySpec> for DefaultParamTySpec
impl PartialEq<DefaultParamTySpec> for DefaultParamTySpec
source§fn eq(&self, other: &DefaultParamTySpec) -> bool
fn eq(&self, other: &DefaultParamTySpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.