Searched refs:try_ref_from_prefix (Results 1 – 1 of 1) sorted by relevance
2001 fn try_ref_from_prefix(source: &[u8]) -> Result<(&Self, &[u8]), TryCastError<&[u8], Self>> in try_ref_from_prefix() method7578 let (r, rest): (&u32, &[u8]) = u32::try_ref_from_prefix(bytes).unwrap(); in test_try_ref_from_prefix_suffix()