Skip to main content

Resettable

Trait Resettable 

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

A trait for setting a value to a known state.

In-place analog of Default.

Required Methods§

Source

fn reset(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§