Struct erg_parser::ast::SubrTySpec
source · [−]pub struct SubrTySpec {
pub kind: SubrKind,
pub lparen: Option<Token>,
pub non_defaults: Vec<ParamTySpec>,
pub defaults: Vec<ParamTySpec>,
pub return_t: Box<TypeSpec>,
}
Fields
kind: SubrKind
lparen: Option<Token>
non_defaults: Vec<ParamTySpec>
defaults: Vec<ParamTySpec>
return_t: Box<TypeSpec>
Implementations
sourceimpl SubrTySpec
impl SubrTySpec
pub fn new(
kind: SubrKind,
lparen: Option<Token>,
non_defaults: Vec<ParamTySpec>,
defaults: Vec<ParamTySpec>,
return_t: TypeSpec
) -> Self
Trait Implementations
sourceimpl Clone for SubrTySpec
impl Clone for SubrTySpec
sourcefn clone(&self) -> SubrTySpec
fn clone(&self) -> SubrTySpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SubrTySpec
impl Debug for SubrTySpec
sourceimpl Display for SubrTySpec
impl Display for SubrTySpec
sourceimpl Hash for SubrTySpec
impl Hash for SubrTySpec
sourceimpl Locational for SubrTySpec
impl Locational for SubrTySpec
sourceimpl PartialEq<SubrTySpec> for SubrTySpec
impl PartialEq<SubrTySpec> for SubrTySpec
sourcefn eq(&self, other: &SubrTySpec) -> bool
fn eq(&self, other: &SubrTySpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for SubrTySpec
impl StructuralEq for SubrTySpec
impl StructuralPartialEq for SubrTySpec
Auto Trait Implementations
impl !RefUnwindSafe for SubrTySpec
impl !Send for SubrTySpec
impl !Sync for SubrTySpec
impl Unpin for SubrTySpec
impl !UnwindSafe for SubrTySpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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