Struct som_interpreter_bc::method::Method
source · pub struct Method {
pub kind: MethodKind,
pub holder: SOMWeakRef<Class>,
pub signature: String,
}
Expand description
Represents a class method.
Fields§
§kind: MethodKind
§holder: SOMWeakRef<Class>
§signature: String
Implementations§
source§impl Method
impl Method
pub fn class(&self, universe: &Universe) -> SOMRef<Class>
pub fn kind(&self) -> &MethodKind
pub fn holder(&self) -> &SOMWeakRef<Class>
pub fn signature(&self) -> &str
sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Whether this invocable is a primitive.
pub fn invoke( self: Rc<Self>, interpreter: &mut Interpreter, universe: &mut Universe, receiver: Value, args: Vec<Value> )
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Method
impl !RefUnwindSafe for Method
impl !Send for Method
impl !Sync for Method
impl Unpin for Method
impl !UnwindSafe for Method
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