[][src]Struct libpijul::pristine::channel_dump::Buf

pub struct Buf { /* fields omitted */ }

The following type does zero-copy buffering: if there are enough bytes in the part we just read, we just return these bytes. Else, we copy the bytes in cache, and complete the cache once we have enough bytes.

The size of the cache could be generic, but since edges and vertices take 25 bytes, hashes 33, and [u8; 33] doesn't implement AsMut<u8>, we just use a fixed-sized array of length 33.

Auto Trait Implementations

impl RefUnwindSafe for Buf

impl Send for Buf

impl Sync for Buf

impl Unpin for Buf

impl UnwindSafe for Buf

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,