try_write_native_ref

Function try_write_native_ref 

Source
pub fn try_write_native_ref<Wrt, W, T>(writer: &mut Wrt, v: &T) -> Result<()>
where Wrt: Write + ?Sized, W: EndianWrite + TryFrom<T>, T: Clone, <W as TryFrom<T>>::Error: Display,
Available on crate feature io-std only.
Expand description

Convenience wrapper over try_write_native when you only have a reference.

This clones the value and forwards to try_write_native.