[][src]Struct compressed_vec::sink::AddConstSink

pub struct AddConstSink<'a, T, S> where
    T: VectBase,
    S: Sink<T::SI>, 
{ /* fields omitted */ }

A Sink for adding a constant value to all output elements. Note that all SIMD types we use also support Add :) This sink is also used for decoding Delta-encoded u64/u32 values, then passing the output to another sink.

Implementations

impl<'a, T, S> AddConstSink<'a, T, S> where
    T: VectBase,
    S: Sink<T::SI>, 
[src]

pub fn new(base: T, inner_sink: &'a mut S) -> Self[src]

Trait Implementations

impl<'a, T: Debug, S: Debug> Debug for AddConstSink<'a, T, S> where
    T: VectBase,
    S: Sink<T::SI>,
    T::SI: Debug
[src]

impl<'a, T, S> Sink<<T as VectBase>::SI> for AddConstSink<'a, T, S> where
    T: VectBase,
    S: Sink<T::SI>,
    T::SI: Add<T::SI, Output = T::SI>, 
[src]

Auto Trait Implementations

impl<'a, T, S> RefUnwindSafe for AddConstSink<'a, T, S> where
    S: RefUnwindSafe,
    <T as VectBase>::SI: RefUnwindSafe

impl<'a, T, S> Send for AddConstSink<'a, T, S> where
    S: Send,
    <T as VectBase>::SI: Send

impl<'a, T, S> Sync for AddConstSink<'a, T, S> where
    S: Sync,
    <T as VectBase>::SI: Sync

impl<'a, T, S> Unpin for AddConstSink<'a, T, S> where
    <T as VectBase>::SI: Unpin

impl<'a, T, S> !UnwindSafe for AddConstSink<'a, T, S>

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, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

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

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

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

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<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.