[][src]Struct owned_read::OwnedRead

pub struct OwnedRead { /* fields omitted */ }

Methods

impl OwnedRead[src]

Important traits for OwnedRead
pub fn new<T: StableDeref + Deref<Target = [u8]> + 'static>(
    data_holder: T
) -> OwnedRead
[src]

pub fn is_empty(&self) -> bool[src]

pub fn clip(&mut self, clip_len: usize)[src]

pub fn advance(&mut self, advance_len: usize)[src]

pub fn slice_from(&self, start: usize) -> &[u8][src]

pub fn get(&self, idx: usize) -> u8[src]

Trait Implementations

impl AsRef<[u8]> for OwnedRead[src]

impl Clone for OwnedRead[src]

impl Read for OwnedRead[src]

Auto Trait Implementations

impl !RefUnwindSafe for OwnedRead

impl !Send for OwnedRead

impl !Sync for OwnedRead

impl Unpin for OwnedRead

impl !UnwindSafe for OwnedRead

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.