pub trait XofReader {
// Required method
fn read(&mut self, out: &mut [u8]);
// Provided method
fn read_n<N: ArrayLength>(&mut self) -> GenericArray<u8, N> { ... }
}Expand description
Output bytes from an XOF.
Required Methods§
Provided Methods§
Sourcefn read_n<N: ArrayLength>(&mut self) -> GenericArray<u8, N>
fn read_n<N: ArrayLength>(&mut self) -> GenericArray<u8, N>
Reads N output bytes from the XOF into out.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".