Home
last modified time | relevance | path

Searched defs:CastFrom (Results 1 – 5 of 5) sorted by relevance

/linux/rust/zerocopy/src/pointer/
H A Dtransmute.rs326 /// from the safety invariants on the associated [`CastFrom`] type, specifically typedef
330 type CastFrom = cast::IdCast; global() typedef
484 type CastFrom = CastSizedExact; global() typedef
488 type CastFrom = CastSizedExact; global() typedef
H A Dptr.rs439 transmute<U, V, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)> where V: Validity, U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, <U as SizeEq<T>>::CastFrom, R> + SizeEq<T> + ?Sized, transmute() argument
/linux/rust/zerocopy/src/
H A Dlayout.rs761 pub(crate) struct CastFrom<Dst: ?Sized> { global() struct
762 _nevercast_from::CastFrom global() argument
763 _markercast_from::CastFrom global() argument
768 unsafe impl<Src, Dst> crate::pointer::cast::Cast<Src, Dst> for CastFrom<Dst> global() implementation
777 unsafe impl<Src, Dst> crate::pointer::cast::CastExact<Src, Dst> for CastFrom<Dst> global() implementation
788 unsafe impl<Src, Dst> crate::pointer::cast::Project<Src, Dst> for CastFrom<Dst> global() implementation
H A Dwrappers.rs702 type CastFrom = CastFromReadOnly; global() typedef
706 type CastFrom = CastToReadOnly; global() typedef
/linux/rust/zerocopy/src/util/
H A Dmod.rs343 transmute_ref<Src, Dst, R>(src: &Src) -> &Dst where Src: ?Sized, Dst: SizeEq<Src> + TransmuteFromPtr<Src, Shared, Valid, Valid, <Dst as SizeEq<Src>>::CastFrom, R> + ?Sized, transmute_ref() argument
360 transmute_mut<Src, Dst, R>(src: &mut Src) -> &mut Dst where Src: ?Sized, Dst: SizeEq<Src> + TransmuteFromPtr<Src, Exclusive, Valid, Valid, <Dst as SizeEq<Src>>::CastFrom, R> + ?Sized, transmute_mut() argument