Skip to main content

expect_len

Function expect_len 

Source
pub fn expect_len(got: usize, want: usize, what: &str) -> Result<()>
Expand description

Return Error::Shape unless a block of got elements has the want expected (what names the elements).

ยงErrors

Error::Shape when the lengths differ.