[][src]Function bcder::encode::slice

pub fn slice<T, F, U, V>(value: T, f: F) -> Slice<T, F, U, V> where
    T: AsRef<[U]>,
    F: Fn(&U) -> V, 

Creates an encodable wrapper around a slice.

The function takes a value of a type that can be converted into a slice of some type and a function that converts references to slice elements into some encoder.