pub enum Callee {
Func(FuncId),
Import(ImportId),
}Expand description
A function the module can call: one of its own, or an import.
§Examples
use bytecode_lang::{Callee, ImportId};
assert_eq!(Callee::Import(ImportId(3)).to_string(), "imp3");Variants§
Trait Implementations§
impl Copy for Callee
impl Eq for Callee
Source§impl Ord for Callee
impl Ord for Callee
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Callee
impl PartialOrd for Callee
impl StructuralPartialEq for Callee
Auto Trait Implementations§
impl Freeze for Callee
impl RefUnwindSafe for Callee
impl Send for Callee
impl Sync for Callee
impl Unpin for Callee
impl UnsafeUnpin for Callee
impl UnwindSafe for Callee
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