[][src]Function bitwisetools::decode_bitwise

pub fn decode_bitwise<T>(i: T, n: u32) -> T where
    T: IntoIterator + FromIterator<<T as IntoIterator>::Item> + Debug

Decodes a bitwise field of type u32

Examples

let reference = vec!["thing1", "thing2", "thing3"];
let array = bitwisetools::decode_bitwise(reference, 5);
assert_eq!(vec!["thing1", "thing3"], array);