pub struct SubrSignature {
pub decorators: Set<Decorator>,
pub ident: Identifier,
pub bounds: TypeBoundSpecs,
pub params: Params,
pub return_t_spec: Option<Box<TypeSpecWithOp>>,
}
Expand description
引数を取るならTypeでもSubr扱い
Fields§
§decorators: Set<Decorator>
§ident: Identifier
§bounds: TypeBoundSpecs
§params: Params
§return_t_spec: Option<Box<TypeSpecWithOp>>
Implementations§
Source§impl SubrSignature
impl SubrSignature
pub fn decorators(&self) -> HashSet<Decorator>
pub fn ident(&self) -> Identifier
pub fn bounds(&self) -> TypeBoundSpecs
pub fn params(&self) -> Params
pub fn return_t_spec(&self) -> Option<TypeSpecWithOp>
pub fn set_decorators(&mut self, decorators: HashSet<Decorator>)
pub fn set_ident(&mut self, ident: Identifier)
pub fn set_bounds(&mut self, bounds: TypeBoundSpecs)
pub fn set_params(&mut self, params: Params)
pub fn set_return_t_spec(&mut self, return_t_spec: Option<TypeSpecWithOp>)
Source§impl SubrSignature
impl SubrSignature
pub fn new( decorators: HashSet<Decorator>, ident: Identifier, bounds: TypeBoundSpecs, params: Params, return_t_spec: Option<TypeSpecWithOp>, ) -> Self
pub fn is_const(&self) -> bool
pub fn is_method(&self) -> bool
pub fn vis(&self) -> &VisModifierSpec
Trait Implementations§
Source§impl Clone for SubrSignature
impl Clone for SubrSignature
Source§fn clone(&self) -> SubrSignature
fn clone(&self) -> SubrSignature
Returns a duplicate 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 for SubrSignature
impl PartialEq for SubrSignature
impl Eq for SubrSignature
impl StructuralPartialEq for SubrSignature
Auto Trait Implementations§
impl Freeze for SubrSignature
impl RefUnwindSafe for SubrSignature
impl Send for SubrSignature
impl Sync for SubrSignature
impl Unpin for SubrSignature
impl UnwindSafe for SubrSignature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more