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.
pub fn expect_len(got: usize, want: usize, what: &str) -> Result<()>Return Error::Shape unless a block of got elements has the want expected
(what names the elements).
Error::Shape when the lengths differ.