Enum som_interpreter_bc::method::MethodKind
source · pub enum MethodKind {
Defined(MethodEnv),
Primitive(PrimitiveFn),
NotImplemented(String),
}
Expand description
The kind of a class method.
Variants§
Defined(MethodEnv)
A user-defined method from the AST.
Primitive(PrimitiveFn)
An interpreter primitive.
NotImplemented(String)
A non-implemented primitive.
Implementations§
source§impl MethodKind
impl MethodKind
sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Whether this invocable is a primitive.
Trait Implementations§
source§impl Clone for MethodKind
impl Clone for MethodKind
source§fn clone(&self) -> MethodKind
fn clone(&self) -> MethodKind
Returns a copy 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 moreAuto Trait Implementations§
impl !Freeze for MethodKind
impl !RefUnwindSafe for MethodKind
impl !Send for MethodKind
impl !Sync for MethodKind
impl Unpin for MethodKind
impl !UnwindSafe for MethodKind
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