Skip to main content

Writable

Trait Writable 

Source
pub trait Writable {
    // Required method
    fn write(self, writer: &mut impl Writer);
}
Expand description

A source of bytes that can be streamed into a Writer.

Used as the input of signing and hashing so that data can be produced without first collecting it into a buffer.

Required Methods§

Source

fn write(self, writer: &mut impl Writer)

Writes all bytes to writer.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Writable for &[u8]

Source§

fn write(self, writer: &mut impl Writer)

Implementors§