Home
last modified time | relevance | path

Searched refs:Infallible (Results 1 – 15 of 15) sorted by relevance

/linux/rust/pin-init/examples/
H A Dlinked_list.rs
H A Dpthread_mutex.rs19 use std::convert::Infallible;
50 impl From<Infallible> for Error {
51 fn from(e: Infallible) -> Self {
H A Dstatic_init.rs74 unsafe fn __init(self, slot: *mut CMutex<usize>) -> Result<(), core::convert::Infallible> {
78 __pinned_init( self, slot: *mut CMutex<usize>, ) -> Result<(), core::convert::Infallible> __pinned_init() argument
/linux/rust/zerocopy/src/
H A Derror.rs123 convert::Infallible,
165 for ConvertError<Infallible, S, V>
200 fn from(err: ConvertError<AlignmentError<Src, Dst>, S, V>) -> ConvertError<Infallible, S, V> { in from() argument
204 return ConvertError::Alignment(Infallible::from(e)); in from()
360 impl<Src, Dst: ?Sized + Unaligned> From<AlignmentError<Src, Dst>> for Infallible { implementation
362 fn from(_: AlignmentError<Src, Dst>) -> Infallible { in from() argument
730 ConvertError<AlignmentError<Src, Dst>, SizeError<Src, Dst>, Infallible>;
856 CastError::Alignment(e) => match Infallible::from(e) {}, in from()
941 ConvertError<Infallible, SizeError<Src, Dst>, ValidityError<Src, Dst>>;
1022 ConvertError<Infallible, SizeError<Src, Dst>, ValidityError<Src, Dst>>;
[all …]
H A Dimpls.rs1128 type Error = core::convert::Infallible;
1154 type Error = core::convert::Infallible;
1180 type Error = core::convert::Infallible;
H A Dlayout.rs762 _never: core::convert::Infallible,
/linux/rust/pin-init/src/
H A Dlib.rs276 convert::Infallible,
486 /// [`PinInit`]/[`Init`] with the error type [`Infallible`]. If you want to use a different error
496 let x: ::core::convert::Infallible = x;
580 /// The error type defaults to [`Infallible`]; if you need a different one, write `? Error` at the
773 /// This macro defaults the error to [`Infallible`]; if you need a different one, write `? Error`
911 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized {
1045 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> {
1423 unsafe fn __init(self, slot: *mut T) -> Result<(), Infallible> { in write_pin_init()
1641 // Note: do not add uninhabited types (such as `!` or `core::convert::Infallible`) to this list;
1351 __init(self, slot: *mut T) -> Result<(), Infallible> __init() argument
1361 __pinned_init(self, slot: *mut T) -> Result<(), Infallible> __pinned_init() argument
H A D__internal.rs206 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in init()
213 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
H A Dalloc.rs12 type AllocError = core::convert::Infallible;
/linux/rust/kernel/
H A Derror.rs354 impl From<core::convert::Infallible> for Error {
356 fn from(e: core::convert::Infallible) -> Error {
H A Dtypes.rs377 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| {
/linux/rust/zerocopy/src/pointer/
H A Dmod.rs245 _never: core::convert::Infallible,
310 _never: core::convert::Infallible,
/linux/rust/zerocopy-derive/
H A Drepr.rs12 convert::{Infallible, TryFrom},
71 pub(crate) type StructUnionRepr = Repr<Infallible, NonZeroU32>;
74 pub(crate) type EnumRepr = Repr<PrimitiveRepr, Infallible>;
668 impl<T> With<T> for Infallible { implementation
/linux/rust/zerocopy-derive/derive/
H A Dtry_from_bytes.rs291 type Error = #zerocopy_crate::util::macro_util::core_reexport::convert::Infallible; in derive_is_bit_valid()
546 type Error = #zerocopy_crate::util::macro_util::core_reexport::convert::Infallible; in derive_has_field_struct_union()
/linux/rust/pin-init/internal/src/
H A Dinit.rs100 parse_quote!(::core::convert::Infallible)