Skip to main content

ReadUntil

Trait ReadUntil 

Source
pub trait ReadUntil: Sized {
    // Required method
    fn read_until<R: Read + ?Sized>(r: &mut R) -> Result<Self>;
}
Expand description

Keep discarding atoms until the desired atom is found.

Required Methods§

Source

fn read_until<R: Read + ?Sized>(r: &mut R) -> Result<Self>

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<T: Atom> ReadUntil for Option<T>

Source§

fn read_until<R: Read + ?Sized>(r: &mut R) -> Result<Self>

Implementors§

Source§

impl<T: Atom> ReadUntil for T