pub struct MethodDef {
pub kind: MethodKind,
pub signature: String,
pub body: MethodBody,
}
Expand description
Represents a method definition.
Example:
"unary method" increment = ( self increment: 1 )
"positional method" increment: value = ( total := total + value )
"operator method" + value = ( self increment: value )
Fields§
§kind: MethodKind
The method’s kind.
signature: String
The method’s signature (eg. println
, at:put:
or ==
).
body: MethodBody
The method’s body.
Trait Implementations§
source§impl PartialEq for MethodDef
impl PartialEq for MethodDef
impl StructuralPartialEq for MethodDef
Auto Trait Implementations§
impl Freeze for MethodDef
impl RefUnwindSafe for MethodDef
impl Send for MethodDef
impl Sync for MethodDef
impl Unpin for MethodDef
impl UnwindSafe for MethodDef
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