Struct erg_parser::ast::SubrTypeSpec
source · pub struct SubrTypeSpec {
pub bounds: TypeBoundSpecs,
pub lparen: Option<Token>,
pub non_defaults: Vec<ParamTySpec>,
pub var_args: Option<Box<ParamTySpec>>,
pub defaults: Vec<DefaultParamTySpec>,
pub arrow: Token,
pub return_t: Box<TypeSpec>,
}
Fields§
§bounds: TypeBoundSpecs
§lparen: Option<Token>
§non_defaults: Vec<ParamTySpec>
§var_args: Option<Box<ParamTySpec>>
§defaults: Vec<DefaultParamTySpec>
§arrow: Token
§return_t: Box<TypeSpec>
Implementations§
source§impl SubrTypeSpec
impl SubrTypeSpec
pub fn new(
bounds: TypeBoundSpecs,
lparen: Option<Token>,
non_defaults: Vec<ParamTySpec>,
var_args: Option<ParamTySpec>,
defaults: Vec<DefaultParamTySpec>,
arrow: Token,
return_t: TypeSpec
) -> Self
Trait Implementations§
source§impl Clone for SubrTypeSpec
impl Clone for SubrTypeSpec
source§fn clone(&self) -> SubrTypeSpec
fn clone(&self) -> SubrTypeSpec
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