Skip to main content

Resettable

Trait Resettable 

Source
pub trait Resettable {
    // Required method
    fn reset(&mut self);
}
Expand description

Trait for resettable objects (objects that can be reused)

Required Methods§

Source

fn reset(&mut self)

Reset the object to its initial state

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Resettable for Array1<f32>

Source§

fn reset(&mut self)

Source§

impl<K, V> Resettable for HashMap<K, V>
where K: Hash + Eq,

Source§

fn reset(&mut self)

Source§

impl<T> Resettable for Vec<T>

Source§

fn reset(&mut self)

Implementors§