Skip to main content

check_len

Function check_len 

Source
pub fn check_len(expected: usize, actual: usize) -> Result<()>
Expand description

Assert that len == expected, returning Err(Error::LengthMismatch) if not.