Trait WriteableChunk

Source
pub trait WriteableChunk: Send {
    type Data<'a>: From<&'a [u8]>;
}
Expand description

Something that specifies the data type for a Chunk that can be written to a stream.

Required Associated Types§

Source

type Data<'a>: From<&'a [u8]>

The type that will hold the data to write.

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 WriteableChunk for U8

Source§

type Data<'b> = &'b [u8]