MCPcopy Create free account
hub / github.com/RustCrypto/utils / try_into

Method try_into

inout/src/inout_buf.rs:289–299  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

287
288 #[inline(always)]
289 fn try_into(self) -> Result<InOut<'inp, 'out, Array<T, N>>, Self::Error> {
290 if self.len() == N::USIZE {
291 Ok(InOut {
292 in_ptr: self.in_ptr.cast(),
293 out_ptr: self.out_ptr.cast(),
294 _pd: PhantomData,
295 })
296 } else {
297 Err(IntoArrayError)
298 }
299 }
300}
301
302/// Iterator over [`InOutBuf`].

Callers 7

absorb_fullFunction · 0.80
absorb_partialFunction · 0.80
squeeze_xor_fullFunction · 0.80
absorb_u64_leMethod · 0.80
squeeze_inner_u64_leMethod · 0.80
dblMethod · 0.80
inv_dblMethod · 0.80

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected