Skip to main content

Write

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.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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

Source§

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