Lines Matching refs:split_at
235 let (bytes, suffix) = bytes.split_at(mem::size_of::<T>()).map_err( in sized_from_prefix()
251 let split_at = if let Some(split_at) = bytes_len.checked_sub(mem::size_of::<T>()) { in sized_from_suffix() localVariable
252 split_at in sized_from_suffix()
256 let (prefix, bytes) = bytes.split_at(split_at).map_err(|b| SizeError::new(b).into())?; in sized_from_suffix()
382 let split_at = unsafe { source.len().unchecked_sub(remainder.len()) }; in from_prefix() localVariable
383 let (bytes, suffix) = source.split_at(split_at).map_err(|b| SizeError::new(b).into())?; in from_prefix()
442 let split_at = remainder.len(); in from_suffix() localVariable
443 let (prefix, bytes) = source.split_at(split_at).map_err(|b| SizeError::new(b).into())?; in from_suffix()
551 let (prefix, bytes) = source.split_at(expected_len).map_err(SizeError::new)?; in from_prefix_with_elems()
597 let split_at = if let Some(split_at) = source.len().checked_sub(expected_len) { in from_suffix_with_elems() localVariable
598 split_at in from_suffix_with_elems()
604 let (bytes, suffix) = unsafe { source.split_at_unchecked(split_at) }; in from_suffix_with_elems()