Skip to main content

FramePolicy

Trait FramePolicy 

Source
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§

Source

type Frame

Consumer-defined frame metadata.

Source

type CallableId: Copy + Eq + Ord

Stable callable identity.

Required Methods§

Source

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".

Implementors§