Skip to main content

Clearable

Trait Clearable 

Source
pub trait Clearable {
    // Provided method
    fn clear(&mut self) { ... }
}
Expand description

An item that can be cleared.

Provided Methods§

Source

fn clear(&mut self)

Clears the item.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§