Skip to main content

IMutableEffect

Trait IMutableEffect 

Source
pub trait IMutableEffect: IEffect {
    // Required method
    fn to_immutable(&self) -> Arc<dyn IImmutableEffect> ⓘ;
}
Expand description

A mutable effect which can return an immutable clone of itself.

Required Methods§

Source

fn to_immutable(&self) -> Arc<dyn IImmutableEffect> ⓘ

Creates an immutable clone of the effect.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§