[][src]Function natural_slice::position::decode_position

pub fn decode_position<ToDecode: TryInto<usize>>(
    position: ToDecode,
    num_interesting: usize,
    len: usize
) -> Result<Vec<bool>, ToDecode::Error>

Decode the position number of a slice Returns a Vec filled with false for all uninteresting elements and true for all interesting elements. This Vec can be used as a mapping of indices to interesting elements.