Trait RefWrite

Source
pub trait RefWrite {
    // Required method
    fn as_write(&self) -> Self::Write<'_>;
}
Expand description

Write by reference.

Required Methods§

Source

fn as_write(&self) -> Self::Write<'_>

Returns self with the guarantee that &Self implements Write encoded in a way which is visible to Rust’s type system.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: ?Sized> RefWrite for T
where for<'a> &'a T: Write,