Skip to main content

FrozenState

Trait FrozenState 

Source
pub trait FrozenState:
    Any
    + Debug
    + DynClone
    + Send {
    // Required methods
    fn unfreeze(&self) -> Box<dyn State>;
    fn input_count(&self) -> usize;
    fn output_count(&self) -> usize;
}

Required Methods§

Source

fn unfreeze(&self) -> Box<dyn State>

Source

fn input_count(&self) -> usize

Source

fn output_count(&self) -> usize

Trait Implementations§

Source§

impl<'clone> Clone for Box<dyn FrozenState + 'clone>

Source§

fn clone(&self) -> Box<dyn FrozenState + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn FrozenState + Send + 'clone>

Source§

fn clone(&self) -> Box<dyn FrozenState + Send + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn FrozenState + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn FrozenState + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn FrozenState + Send + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn FrozenState + Send + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§