Home
last modified time | relevance | path

Searched defs:Dst (Results 1 – 7 of 7) sorted by relevance

/linux/rust/zerocopy/src/util/
H A Dmacro_util.rs525 pub fn try_transmute<Src, Dst>(src: Src) -> Result<Dst, ValidityError<Src, Dst>> in try_transmute() argument
561 type Dst: ?Sized; typedef
564 fn try_transmute_ref(self) -> Result<&'a Self::Dst, ValidityError<&'a Self::Src, Self::Dst>> in try_transmute_ref()
588 type Dst = Dst; typedef
594 &'a Dst, in try_transmute_ref()
595 ValidityError<&'a <Wrap<&'a Src, &'a Dst> as TryTransmuteRefSrc<'a>>::Src, Dst>, in try_transmute_ref() argument
620 type Dst: ?Sized; typedef
625 ) -> Result<&'a mut Self::Dst, ValidityError<&'a mut Self::Src, Self::Dst>> in try_transmute_mut()
649 type Dst = Dst; typedef
655 &'a mut Dst, in try_transmute_mut()
[all …]
H A Dmod.rs305 pub(crate) const unsafe fn transmute_unchecked<Src, Dst>(src: Src) -> Dst { in transmute_unchecked() argument
339 pub(crate) unsafe fn transmute_ref<Src, Dst, R>(src: &Src) -> &Dst in transmute_ref() argument
356 pub(crate) unsafe fn transmute_mut<Src, Dst, R>(src: &mut Src) -> &mut Dst in transmute_mut() argument
/linux/rust/zerocopy/src/pointer/
H A Dtransmute.rs152 unsafe impl<Src, Dst, SV, DV, A, C, R> implementation
171 unsafe impl<Src, Dst, SV, DV, C> TryTransmuteFromPtr<Src, Shared, SV, DV, C, BecauseImmutable> implementation
199 unsafe impl<Src: ?Sized, Dst: ?Sized, A: Aliasing, SV: Validity, DV: Validity, R> implementation
221 unsafe impl<Src: ?Sized, Dst: ?Sized, A: Aliasing, SV: Validity, DV: Validity> implementation
282 unsafe impl<
336 unsafe impl<Src, Dst> TransmuteFrom<Src, Valid, Initialized> for Dst implementation
346 unsafe impl<Src, Dst> TransmuteFrom<Src, Initialized, Valid> for Dst implementation
359 unsafe impl<Src, Dst> TransmuteFrom<Src, Initialized, Initialized> for Dst implementation
372 unsafe impl<Src, Dst, V> TransmuteFrom<Src, V, Uninit> for Dst implementation
H A Dmod.rs73 fn project(src: PtrInner<'_, Src>) -> *mut Dst; in project()
130 fn project(src: PtrInner<'_, Src>) -> *mut Dst { in project()
157 fn project(src: PtrInner<'_, Src>) -> *mut Dst { in project()
196 fn project(src: PtrInner<'_, Src>) -> *mut Dst { in project()
H A Dptr.rs1539 struct Dst { in test_try_cast_into_explicit_count() struct
1540 u: [u8; 8], in test_try_cast_into_explicit_count()
1541 slc: [u8], in test_try_cast_into_explicit_count()
/linux/rust/zerocopy/src/
H A Derror.rs200 fn from(err: ConvertError<AlignmentError<Src, Dst>, S, V>) -> ConvertError<Infallible, S, V> { in from() argument
277 pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> AlignmentError<NewSrc, Dst> { in with_src() argument
305 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> AlignmentError<NewSrc, Dst> { in map_src() argument
375 fn new_checked(src: Src) -> AlignmentError<Src, Dst> { in new_checked() argument
450 pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> SizeError<NewSrc, Dst> { in with_src() argument
476 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> SizeError<NewSrc, Dst> { in map_src() argument
629 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> ValidityError<NewSrc, Dst> { in map_src() argument
744 pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> CastError<NewSrc, Dst> { in with_src() argument
774 pub fn map_src<NewSrc>(self, f: impl FnOnce(Src) -> NewSrc) -> CastError<NewSrc, Dst> { in map_src() argument
853 fn from(err: CastError<Src, Dst>) -> SizeError<Src, Dst> { in from() argument
[all …]
H A Dlayout.rs799 fn project(src: PtrInner<'_, Src>) -> *mut Dst { in project()
916 ) -> Option<CastParams<Src, Dst>> { in project() argument
1069 impl<Src, Dst> Params<Src> for Dst in project() implementation