Struct erg_parser::ast::SubrTypeSpec
source · pub struct SubrTypeSpec {
pub bounds: TypeBoundSpecs,
pub lparen: Option<Token>,
pub non_defaults: Vec<ParamTySpec>,
pub var_params: Option<Box<ParamTySpec>>,
pub defaults: Vec<DefaultParamTySpec>,
pub kw_var_params: Option<Box<ParamTySpec>>,
pub arrow: Token,
pub return_t: Box<TypeSpec>,
}
Fields§
§bounds: TypeBoundSpecs
§lparen: Option<Token>
§non_defaults: Vec<ParamTySpec>
§var_params: Option<Box<ParamTySpec>>
§defaults: Vec<DefaultParamTySpec>
§kw_var_params: Option<Box<ParamTySpec>>
§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_params: Option<ParamTySpec>, defaults: Vec<DefaultParamTySpec>, kw_var_params: Option<ParamTySpec>, 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 moresource§impl Debug for SubrTypeSpec
impl Debug for SubrTypeSpec
source§impl Display for SubrTypeSpec
impl Display for SubrTypeSpec
source§impl Hash for SubrTypeSpec
impl Hash for SubrTypeSpec
source§impl Locational for SubrTypeSpec
impl Locational for SubrTypeSpec
source§impl PartialEq for SubrTypeSpec
impl PartialEq for SubrTypeSpec
source§fn eq(&self, other: &SubrTypeSpec) -> bool
fn eq(&self, other: &SubrTypeSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SubrTypeSpec
impl StructuralPartialEq for SubrTypeSpec
Auto Trait Implementations§
impl Freeze for SubrTypeSpec
impl RefUnwindSafe for SubrTypeSpec
impl Send for SubrTypeSpec
impl Sync for SubrTypeSpec
impl Unpin for SubrTypeSpec
impl UnwindSafe for SubrTypeSpec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more