write

Function write 

Source
pub fn write<T>(ptr: &mut T, value: T)
Expand description

Writes a value to the reference without dropping the old value