[][src]Trait streamcatcher::NeedsBytes

pub trait NeedsBytes {
    fn min_bytes_required(&self) -> usize { ... }
}

Common trait required by transforms, specifying how many contiguous bytes are needed for any read(...) to succeed.

Provided methods

fn min_bytes_required(&self) -> usize

The minimum amount of contiguous bytes required in any rope segment.

Larger choices can simplify serialisation across rope segments (i.e., 2 would ensure that a u16 will never be split across segment boundaries).

Defaults to 1.

Loading content...

Implementors

impl NeedsBytes for Identity[src]

Loading content...