pub trait InputTake {
    fn take(&self, count: usize) -> Self;
    fn take_split(&self, count: usize) -> (Self, Self);
Available on crate feature mtls only.
Expand description

Abstracts slicing operations

Required Methods

Returns a slice of count bytes. panics if count > length

Split the stream at the count byte offset. panics if count > length

Implementations on Foreign Types