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
sourceimpl 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
sourceimpl Clone for SubrSignature
impl Clone for SubrSignature
sourcefn clone(&self) -> SubrSignature
fn clone(&self) -> SubrSignature
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 SubrSignature
impl Debug for SubrSignature
sourceimpl Display for SubrSignature
impl Display for SubrSignature
sourceimpl Hash for SubrSignature
impl Hash for SubrSignature
sourceimpl Locational for SubrSignature
impl Locational for SubrSignature
sourceimpl NestedDisplay for SubrSignature
impl NestedDisplay for SubrSignature
sourceimpl PartialEq<SubrSignature> for SubrSignature
impl PartialEq<SubrSignature> for SubrSignature
sourcefn eq(&self, other: &SubrSignature) -> bool
fn eq(&self, other: &SubrSignature) -> bool
impl Eq for SubrSignature
impl StructuralEq for SubrSignature
impl StructuralPartialEq for SubrSignature
Auto Trait Implementations
impl RefUnwindSafe for SubrSignature
impl !Send for SubrSignature
impl !Sync for SubrSignature
impl Unpin for SubrSignature
impl UnwindSafe for SubrSignature
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