[−][src]Struct crypto::buffer::OwnedReadBuffer
Methods
impl OwnedReadBuffer
[src]
pub fn new(buff: Vec<u8>) -> OwnedReadBuffer
[src]
pub fn new_with_len<'a>(buff: Vec<u8>, len: usize) -> OwnedReadBuffer
[src]
pub fn into_write_buffer(self) -> OwnedWriteBuffer
[src]
pub fn borrow_write_buffer(&mut self) -> BorrowedWriteBuffer
[src]
Trait Implementations
impl ReadBuffer for OwnedReadBuffer
[src]
fn is_empty(&self) -> bool
[src]
fn is_full(&self) -> bool
[src]
fn remaining(&self) -> usize
[src]
fn capacity(&self) -> usize
[src]
fn rewind(&mut self, distance: usize)
[src]
fn truncate(&mut self, amount: usize)
[src]
fn reset(&mut self)
[src]
fn peek_next(&self, count: usize) -> &[u8]
[src]
fn take_next(&mut self, count: usize) -> &[u8]
[src]
fn position(&self) -> usize
[src]
fn peek_remaining(&self) -> &[u8]
[src]
fn take_remaining(&mut self) -> &[u8]
[src]
fn push_to<W: WriteBuffer>(&mut self, output: &mut W)
[src]
Auto Trait Implementations
impl Unpin for OwnedReadBuffer
impl Sync for OwnedReadBuffer
impl Send for OwnedReadBuffer
impl UnwindSafe for OwnedReadBuffer
impl RefUnwindSafe for OwnedReadBuffer
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,