Lines Matching defs:via_runtime_check
334 /// or [`Self::via_runtime_check`] to check a particular split. Shared references
564 /// If you need to split such types, use [`Self::via_runtime_check`].
605 /// if let Ok((packet, rest)) = split.via_runtime_check() {
618 /// assert!(split.via_runtime_check().is_err());
643 pub fn via_runtime_check(self) -> Result<(&'a T, &'a [T::Elem]), Self> {
644 match self.into_ptr().via_runtime_check() {
839 /// If you need to split such types, use [`Self::via_runtime_check`].
876 /// if let Ok((packet, rest)) = split.via_runtime_check() {
894 /// See [`Split::via_runtime_check`](#method.split_via_runtime_check.codegen).
897 pub fn via_runtime_check(self) -> Result<(&'a mut T, &'a mut [T::Elem]), Self> {
898 match self.into_ptr().via_runtime_check() {
992 "`Split::via_no_dynamic_padding` cannot be used with a type whose layout may require dynamic trailing padding; use `Split::via_runtime_check` instead"
1025 fn via_runtime_check(self) -> Result<(Ptr<'a, T, I>, Ptr<'a, [T::Elem], I>), Self> {
1160 packet.split_at_mut(i).unwrap().via_runtime_check().ok().unwrap();
1235 assert_eq!(dst.split_at(i).unwrap().via_runtime_check().is_err(), has_padding);
1238 let split = dst.split_at_mut(i).unwrap().via_runtime_check();
1298 let (l, r) = dst.split_at(i).unwrap().via_runtime_check().unwrap();
1311 let (l, r) = dst.split_at_mut(i).unwrap().via_runtime_check().unwrap();
1346 let split = dst.split_at(i).unwrap().via_runtime_check();