Skip to main content

VolatilityOpInterface

Trait VolatilityOpInterface 

Source
pub trait VolatilityOpInterface: Op {
    // Provided methods
    fn is_volatile(&self, ctx: &Context) -> bool
       where Self: Sized { ... }
    fn set_volatile(&self, ctx: &Context, is_volatile: bool)
       where Self: Sized { ... }
}
Expand description

Ops that can be marked volatile.

Provided Methods§

Source

fn is_volatile(&self, ctx: &Context) -> bool
where Self: Sized,

Return whether this [Op] is volatile.

Source

fn set_volatile(&self, ctx: &Context, is_volatile: bool)
where Self: Sized,

Set whether this [Op] is volatile.

Trait Implementations§

Source§

impl OpInterfaceMarker for dyn VolatilityOpInterface

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§