Trait Write

Source
pub trait Write<T> {
    // Required method
    fn write(&mut self, value: T);
}
Expand description

A trait for objects which provide non-dropping write access to their value.

Required Methods§

Source

fn write(&mut self, value: T)

Writes the value the given value without dropping the old value.

Implementors§

Source§

impl<'a, T: 'a> Write<T> for VolatileWriteOnlyRef<'a, T>

Source§

impl<'a, T: 'a> Write<T> for WriteOnlyRef<'a, T>