pub enum Callee {
Real(FunctionId),
Minted(u32),
}Expand description
A statically named callee. Real refers to an installed function; Minted
is a pass-local placeholder that must be resolved before execution.
Variants§
Real(FunctionId)
Minted(u32)
Implementations§
Source§impl Callee
impl Callee
pub const fn real(self) -> Option<FunctionId>
pub const fn minted(self) -> Option<u32>
Sourcepub fn expect_real(self, operation: &str) -> FunctionId
pub fn expect_real(self, operation: &str) -> FunctionId
Require an installed function at an execution-facing boundary.
Trait Implementations§
impl Copy for Callee
Source§impl<'de> Deserialize<'de> for Callee
impl<'de> Deserialize<'de> for Callee
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Callee
Source§impl From<FunctionId> for Callee
impl From<FunctionId> for Callee
Source§fn from(id: FunctionId) -> Self
fn from(id: FunctionId) -> Self
Converts to this type from the input type.
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