Skip to main content

Clear

Trait Clear 

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

Required Methods§

Source

fn clear(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Clear for String

Source§

fn clear(&mut self)

Source§

impl<T> Clear for Vec<T>

Source§

fn clear(&mut self)

Implementors§