Home
last modified time | relevance | path

Searched refs:CastFrom (Results 1 – 8 of 8) sorted by relevance

/linux/rust/zerocopy/src/util/
H A Dmacros.rs767 type CastFrom = CastToWrapper;
770 type CastFrom = CastFromWrapper;
774 type CastFrom = TransitiveProject<
776 <T as SizeEq<ReadOnly<T>>>::CastFrom,
781 type CastFrom = TransitiveProject<
784 <ReadOnly<T> as SizeEq<T>>::CastFrom,
789 type CastFrom = TransitiveProject<
791 <$wrapper<T> as SizeEq<ReadOnly<T>>>::CastFrom,
792 <ReadOnly<$wrapper<T>> as SizeEq<$wrapper<T>>>::CastFrom,
796 type CastFrom = TransitiveProject<
[all …]
H A Dmacro_util.rs601 let ptr = ptr.cast::<_, crate::layout::CastFrom<Dst>, _>(); in try_transmute_ref()
664 let ptr = ptr.cast::<_, crate::layout::CastFrom<Dst>, _>(); in try_transmute_mut()
880 ….transmute_with::<Dst, Initialized, crate::layout::CastFrom<Dst>, (crate::pointer::BecauseMutation… in transmute_ref()
913 .transmute_with::<Dst, Initialized, crate::layout::CastFrom<Dst>, _>() in transmute_mut()
H A Dmod.rs343 + TransmuteFromPtr<Src, Shared, Valid, Valid, <Dst as SizeEq<Src>>::CastFrom, R> in transmute_ref() argument
360 + TransmuteFromPtr<Src, Exclusive, Valid, Valid, <Dst as SizeEq<Src>>::CastFrom, R> in transmute_mut() argument
/linux/rust/zerocopy/src/pointer/
H A Dtransmute.rs326 type CastFrom: CastExact<Src, Self>; typedef
330 type CastFrom = cast::IdCast; typedef
484 type CastFrom = CastSizedExact; typedef
488 type CastFrom = CastSizedExact; typedef
498 <Dst as SizeEq<Src>>::CastFrom::project(crate::pointer::PtrInner::from_mut(&mut src)); in test_size_eq()
H A Dptr.rs439 U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, <U as SizeEq<T>>::CastFrom, R> in transmute() argument
443 self.transmute_with::<U, V, <U as SizeEq<T>>::CastFrom, R>() in transmute()
/linux/rust/zerocopy/src/
H A Dwrappers.rs676 … |c| T::is_bit_valid(c.cast::<_, <ReadOnly<T> as SizeEq<ReadOnly<ReadOnly<T>>>>::CastFrom, _>())
702 type CastFrom = CastFromReadOnly; typedef
706 type CastFrom = CastToReadOnly; typedef
771 <T as SizeEq<ReadOnly<T>>>::CastFrom,
813 slf.project::<_, <T as SizeEq<ReadOnly<T>>>::CastFrom>() in project()
815 .project::<_, <ReadOnly<T::Type> as SizeEq<T::Type>>::CastFrom>() in project()
H A Dlayout.rs757 pub(crate) use cast_from::CastFrom;
761 pub(crate) struct CastFrom<Dst: ?Sized> { struct
768 unsafe impl<Src, Dst> crate::pointer::cast::Cast<Src, Dst> for CastFrom<Dst> implementation
777 unsafe impl<Src, Dst> crate::pointer::cast::CastExact<Src, Dst> for CastFrom<Dst> implementation
788 unsafe impl<Src, Dst> crate::pointer::cast::Project<Src, Dst> for CastFrom<Dst> implementation
H A Dimpls.rs435 type CastFrom = $crate::pointer::cast::CastSizedExact;