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
sourceimpl 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
sourceimpl Clone for SubrTypeSpec
impl Clone for SubrTypeSpec
sourcefn clone(&self) -> SubrTypeSpec
fn clone(&self) -> SubrTypeSpec
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SubrTypeSpec
impl Debug for SubrTypeSpec
sourceimpl Display for SubrTypeSpec
impl Display for SubrTypeSpec
sourceimpl Hash for SubrTypeSpec
impl Hash for SubrTypeSpec
sourceimpl Locational for SubrTypeSpec
impl Locational for SubrTypeSpec
sourceimpl PartialEq<SubrTypeSpec> for SubrTypeSpec
impl PartialEq<SubrTypeSpec> for SubrTypeSpec
sourcefn eq(&self, other: &SubrTypeSpec) -> bool
fn eq(&self, other: &SubrTypeSpec) -> bool
impl Eq for SubrTypeSpec
impl StructuralEq for SubrTypeSpec
impl StructuralPartialEq for SubrTypeSpec
Auto Trait Implementations
impl RefUnwindSafe for SubrTypeSpec
impl !Send for SubrTypeSpec
impl !Sync for SubrTypeSpec
impl Unpin for SubrTypeSpec
impl UnwindSafe for SubrTypeSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more