Infallible

Trait Infallible 

Source
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§

Source

fn infallible_read_chunk(&mut self, watermark: usize) -> Chunk<'_>

Source

fn infallible_partial_copy_into<Dest>(&mut self, dest: &mut Dest) -> Chunk<'_>
where Dest: Storage + ?Sized,

Source

fn infallible_copy_into<Dest>(&mut self, dest: &mut Dest)
where Dest: Storage + ?Sized,

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> Infallible for T
where T: Storage<Error = Infallible> + ?Sized,