pub trait SafepointPolicy<I> {
// Required method
fn is_safepoint(instruction: &I) -> bool;
}Expand description
Declares semantic polling locations in prepared code.
For example, a WebAssembly loop policy or a Lua interpreter can supply it.
Required Methods§
Sourcefn is_safepoint(instruction: &I) -> bool
fn is_safepoint(instruction: &I) -> bool
Returns whether the instruction is a semantic safepoint.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".