Skip to main content

Clear

Trait Clear 

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

A type that can be cleared.

Required Methods§

Source

fn clear(&mut self)

Clear the object to its default state.

Implementations on Foreign Types§

Source§

impl<T> Clear for Vec<T>

Source§

fn clear(&mut self)

Implementors§