Lines Matching refs:Ptr

416 pub use crate::pointer::{invariant::BecauseImmutable, Maybe, Ptr};
1300 fn is_projectable<'a>(_ptr: Ptr<'a, Self::Tag, I>) -> Result<(), Self::Error> { in is_projectable()
1883 match Ptr::from_ref(source).try_cast_into_no_leftover::<Self, BecauseImmutable>(None) { in try_ref_from_bytes()
1895 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_bytes()
2210 match Ptr::from_mut(bytes).try_cast_into_no_leftover::<Self, BecauseExclusive>(None) { in try_mut_from_bytes()
2220 Err(e) => Err(e.map_src(Ptr::as_mut).into()), in try_mut_from_bytes()
2526 match Ptr::from_ref(source).try_cast_into_no_leftover::<Self, BecauseImmutable>(Some(count)) in try_ref_from_bytes_with_elems()
2539 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_bytes_with_elems()
2851 match Ptr::from_mut(source).try_cast_into_no_leftover::<Self, BecauseExclusive>(Some(count)) in try_mut_from_bytes_with_elems()
2862 Err(e) => Err(e.map_src(Ptr::as_mut).into()), in try_mut_from_bytes_with_elems()
3303 match Ptr::from_ref(source).try_cast_into::<T, BecauseImmutable>(cast_type, meta) { in try_ref_from_prefix_suffix()
3313 Err(e) => Err(e.map_src(Ptr::as_ref).into()), in try_ref_from_prefix_suffix()
3323 match Ptr::from_mut(candidate).try_cast_into::<T, BecauseExclusive>(cast_type, meta) { in try_mut_from_prefix_suffix()
3333 Err(e) => Err(e.map_src(Ptr::as_mut).into()), in try_mut_from_prefix_suffix()
3352 let c_ptr = Ptr::from_mut(&mut candidate); in try_read_from()
4160 match Ptr::from_ref(source).try_cast_into_no_leftover::<_, BecauseImmutable>(None) { in ref_from_bytes()
4450 match Ptr::from_mut(source).try_cast_into_no_leftover::<_, BecauseExclusive>(None) { in mut_from_bytes()
4716 let source = Ptr::from_ref(source); in ref_from_bytes_with_elems()
4990 let source = Ptr::from_mut(source); in mut_from_bytes_with_elems()
5373 let ptr = Ptr::from_mut(&mut buf); in read_from_io()
5480 let (slf, prefix_suffix) = Ptr::from_ref(source) in ref_from_prefix_suffix()
5500 let (slf, prefix_suffix) = Ptr::from_mut(source) in mut_from_prefix_suffix()