Function bcder::encode::slice

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

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.