[][src]Enum abin::GivenVecOptimization

pub enum GivenVecOptimization {
    Construction,
    Operations,
}

Hint on what optimization to perform when constructing a binary from a Vec<u8>. Optimize for construction (see BinFactory::from_given_vec) or optimize for operations (such as clone or slice).

Variants

Construction

Optimize for construction (when AnyBin is created from Vec<u8>). Operations (such as clone or slice) might be slower (require allocation / mem-copy).

Operations

Optimize for operations (such as clone, slice). The creation (when AnyBin is created from Vec<u8>) might be slower (require allocation / mem-copy) instead.

Trait Implementations

impl Debug for GivenVecOptimization[src]

impl Eq for GivenVecOptimization[src]

impl PartialEq<GivenVecOptimization> for GivenVecOptimization[src]

impl StructuralEq for GivenVecOptimization[src]

impl StructuralPartialEq for GivenVecOptimization[src]

Auto Trait Implementations

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, 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.