Skip to main content

Clearable

Trait Clearable 

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

A buffer that can be cleared.

Required Methods§

Source

fn clear(&mut self)

Clear the buffer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Clearable for Vec<u8>

Source§

fn clear(&mut self)

Implementors§