pub trait Infallible: Storage<Error = Infallible> {
// Provided methods
fn infallible_read_chunk(&mut self, watermark: usize) -> Chunk<'_> { ... }
fn infallible_partial_copy_into<Dest>(
&mut self,
dest: &mut Dest,
) -> Chunk<'_>
where Dest: Storage + ?Sized { ... }
fn infallible_copy_into<Dest>(&mut self, dest: &mut Dest)
where Dest: Storage + ?Sized { ... }
}
Expand description
Storage
implementation that cannot fail
Provided Methods§
fn infallible_read_chunk(&mut self, watermark: usize) -> Chunk<'_>
fn infallible_partial_copy_into<Dest>(&mut self, dest: &mut Dest) -> Chunk<'_>
fn infallible_copy_into<Dest>(&mut self, dest: &mut Dest)
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.