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 more