slice_contains

Function slice_contains 

Source
pub fn slice_contains(slice: &[u8], prefix: usize, other: &[u8]) -> bool
Available on crate feature bigendian only.
Expand description

check whether another bit string other shares the first prefix bits with slice

ยงPanics

Panics if prefix >= ELEMENT_BITS * slice.len().