pub struct MethodSig {
pub name: String,
pub params: Vec<Param>,
pub ret_ty: Option<TypeExpr>,
pub effect: Option<Effect>,
pub span: Span,
}Expand description
a method signature in an interface: like a FnDecl without a body and
without a type_name (the receiver is whatever type satisfies the
interface). the first parameter is typically self.
Fields§
§name: Stringthe method name.
params: Vec<Param>the parameter list; the first is typically self.
ret_ty: Option<TypeExpr>the -> T return type, or None for void.
effect: Option<Effect>the is ... effect annotation, or None.
span: Spanthe signature’s source span.
Trait Implementations§
impl StructuralPartialEq for MethodSig
Auto Trait Implementations§
impl Freeze for MethodSig
impl RefUnwindSafe for MethodSig
impl Send for MethodSig
impl Sync for MethodSig
impl Unpin for MethodSig
impl UnsafeUnpin for MethodSig
impl UnwindSafe for MethodSig
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