pub trait FramePolicy {
type Frame;
type CallableId: Copy + Eq + Ord;
// Required method
fn callable(frame: &Self::Frame) -> Self::CallableId;
}Expand description
Describes bounded guest-frame metadata without owning frame storage.
For example, a WebAssembly engine or a PostScript interpreter can supply it.
Required Associated Types§
Sourcetype CallableId: Copy + Eq + Ord
type CallableId: Copy + Eq + Ord
Stable callable identity.
Required Methods§
Sourcefn callable(frame: &Self::Frame) -> Self::CallableId
fn callable(frame: &Self::Frame) -> Self::CallableId
Returns the callable associated with frame.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".