[][src]Struct kv::ValueBuf

pub struct ValueBuf<T>(pub Vec<u8>, _);

A Value can be used to dynamically build values

Methods

impl<T: Encoding> ValueBuf<T>[src]

Important traits for ValueBuf<T>
pub fn empty() -> ValueBuf<T>[src]

Create an empty value buffer

Important traits for ValueBuf<T>
pub fn new(n: usize) -> ValueBuf<T>[src]

Create a new ValueBuf with the given size

pub fn inner(&self) -> Result<T, Error>[src]

Get inner value

Trait Implementations

impl<T: Encoding> AsRef<[u8]> for ValueBuf<T>[src]

impl<T: Clone> Clone for ValueBuf<T>[src]

impl<T: Debug> Debug for ValueBuf<T>[src]

impl<T: PartialEq> PartialEq<ValueBuf<T>> for ValueBuf<T>[src]

impl<T: PartialOrd> PartialOrd<ValueBuf<T>> for ValueBuf<T>[src]

impl<T: Encoding> Read for ValueBuf<T>[src]

impl<T> StructuralPartialEq for ValueBuf<T>[src]

impl<'a, T: Encoding> Value<'a> for ValueBuf<T>[src]

impl<T: Encoding> Write for ValueBuf<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ValueBuf<T> where
    T: RefUnwindSafe

impl<T> Send for ValueBuf<T> where
    T: Send

impl<T> Sync for ValueBuf<T> where
    T: Sync

impl<T> Unpin for ValueBuf<T> where
    T: Unpin

impl<T> UnwindSafe for ValueBuf<T> where
    T: UnwindSafe

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<R> ReadBytesExt for R where
    R: Read + ?Sized

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.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized