[][src]Trait crypto::buffer::ReadBuffer

pub trait ReadBuffer {
    fn is_empty(&self) -> bool;
fn is_full(&self) -> bool;
fn remaining(&self) -> usize;
fn capacity(&self) -> usize;
fn rewind(&mut self, distance: usize);
fn truncate(&mut self, amount: usize);
fn reset(&mut self);
fn peek_next(&self, count: usize) -> &[u8];
fn take_next(&mut self, count: usize) -> &[u8]; fn position(&self) -> usize { ... }
fn peek_remaining(&self) -> &[u8] { ... }
fn take_remaining(&mut self) -> &[u8] { ... }
fn push_to<W: WriteBuffer>(&mut self, output: &mut W) { ... } }

Required methods

fn is_empty(&self) -> bool

fn is_full(&self) -> bool

fn remaining(&self) -> usize

fn capacity(&self) -> usize

fn rewind(&mut self, distance: usize)

fn truncate(&mut self, amount: usize)

fn reset(&mut self)

fn peek_next(&self, count: usize) -> &[u8]

fn take_next(&mut self, count: usize) -> &[u8]

Loading content...

Provided methods

fn position(&self) -> usize

fn peek_remaining(&self) -> &[u8]

fn take_remaining(&mut self) -> &[u8]

fn push_to<W: WriteBuffer>(&mut self, output: &mut W)

Loading content...

Implementors

impl ReadBuffer for OwnedReadBuffer[src]

impl<'a> ReadBuffer for RefReadBuffer<'a>[src]

Loading content...