| /linux/rust/pin-init/examples/ |
| H A D | linked_list.rs | |
| H A D | pthread_mutex.rs | 19 use std::convert::Infallible; 50 impl From<Infallible> for Error { 51 fn from(e: Infallible) -> Self {
|
| H A D | static_init.rs | 74 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 D | error.rs | 123 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 D | impls.rs | 1128 type Error = core::convert::Infallible; 1154 type Error = core::convert::Infallible; 1180 type Error = core::convert::Infallible;
|
| H A D | layout.rs | 762 _never: core::convert::Infallible,
|
| /linux/rust/pin-init/src/ |
| H A D | lib.rs | 276 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.rs | 206 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 D | alloc.rs | 12 type AllocError = core::convert::Infallible;
|
| /linux/rust/kernel/ |
| H A D | error.rs | 354 impl From<core::convert::Infallible> for Error { 356 fn from(e: core::convert::Infallible) -> Error {
|
| H A D | types.rs | 377 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| {
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | mod.rs | 245 _never: core::convert::Infallible, 310 _never: core::convert::Infallible,
|
| /linux/rust/zerocopy-derive/ |
| H A D | repr.rs | 12 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 D | try_from_bytes.rs | 291 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 D | init.rs | 100 parse_quote!(::core::convert::Infallible)
|