[][src]Struct bcder::encode::Slice

pub struct Slice<T, F, U, V> where
    T: AsRef<[U]>,
    F: Fn(&U) -> V, 
{ /* fields omitted */ }

A wrapper for a slice of encodable values.

A value of this type will take something that can provide a reference to a slice of some value and a closure that converts the values of the slice into something encodable.

Implementations

impl<T, F, U, V> Slice<T, F, U, V> where
    T: AsRef<[U]>,
    F: Fn(&U) -> V, 
[src]

pub fn new(value: T, f: F) -> Self[src]

Creates a new wrapper for a given value and closure.

Trait Implementations

impl<T, F, U, V> Values for Slice<T, F, U, V> where
    T: AsRef<[U]>,
    F: Fn(&U) -> V,
    V: Values
[src]

Auto Trait Implementations

impl<T, F, U, V> RefUnwindSafe for Slice<T, F, U, V> where
    F: RefUnwindSafe,
    T: RefUnwindSafe,
    U: RefUnwindSafe,
    V: RefUnwindSafe
[src]

impl<T, F, U, V> Send for Slice<T, F, U, V> where
    F: Send,
    T: Send,
    U: Send,
    V: Send
[src]

impl<T, F, U, V> Sync for Slice<T, F, U, V> where
    F: Sync,
    T: Sync,
    U: Sync,
    V: Sync
[src]

impl<T, F, U, V> Unpin for Slice<T, F, U, V> where
    F: Unpin,
    T: Unpin,
    U: Unpin,
    V: Unpin
[src]

impl<T, F, U, V> UnwindSafe for Slice<T, F, U, V> where
    F: UnwindSafe,
    T: UnwindSafe,
    U: UnwindSafe,
    V: UnwindSafe
[src]

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.