Struct erg_parser::ast::SubrSignature
source · pub struct SubrSignature {
pub decorators: HashSet<Decorator>,
pub ident: Identifier,
pub bounds: TypeBoundSpecs,
pub params: Params,
pub return_t_spec: Option<TypeSpec>,
}
Expand description
引数を取るならTypeでもSubr扱い
Fields§
§decorators: HashSet<Decorator>
§ident: Identifier
§bounds: TypeBoundSpecs
§params: Params
§return_t_spec: Option<TypeSpec>
Implementations§
source§impl SubrSignature
impl SubrSignature
pub const fn new(
decorators: HashSet<Decorator>,
ident: Identifier,
bounds: TypeBoundSpecs,
params: Params,
return_t: Option<TypeSpec>
) -> Self
pub fn is_const(&self) -> bool
pub const fn vis(&self) -> Visibility
Trait Implementations§
source§impl Clone for SubrSignature
impl Clone for SubrSignature
source§fn clone(&self) -> SubrSignature
fn clone(&self) -> SubrSignature
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 SubrSignature
impl Debug for SubrSignature
source§impl Display for SubrSignature
impl Display for SubrSignature
source§impl Hash for SubrSignature
impl Hash for SubrSignature
source§impl Locational for SubrSignature
impl Locational for SubrSignature
source§impl NestedDisplay for SubrSignature
impl NestedDisplay for SubrSignature
source§impl PartialEq<SubrSignature> for SubrSignature
impl PartialEq<SubrSignature> for SubrSignature
source§fn eq(&self, other: &SubrSignature) -> bool
fn eq(&self, other: &SubrSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.