Searched refs:Infallible (Results 1 – 8 of 8) sorted by relevance
| /linux/rust/pin-init/examples/ |
| H A D | linked_list.rs | 9 convert::Infallible, 34 pub fn new() -> impl PinInit<Self, Infallible> { in new() 39 }? Infallible) in new() 44 pub fn insert_next(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_next() 49 }? Infallible) in insert_next() 53 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_prev() 58 }? Infallible) in insert_prev()
|
| H A D | pthread_mutex.rs | 20 use std::convert::Infallible; 51 impl From<Infallible> for Error { 52 fn from(e: Infallible) -> Self { in from()
|
| H A D | static_init.rs | 78 ) -> Result<(), core::convert::Infallible> { in __pinned_init() argument
|
| /linux/rust/pin-init/src/ |
| H A D | lib.rs | 285 convert::Infallible, 503 let x: ::core::convert::Infallible = x; 788 }? ::core::convert::Infallible) 895 }? ::core::convert::Infallible) 1057 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized { 1156 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> { 1484 unsafe fn __init(self, slot: *mut T) -> Result<(), Infallible> { in __init() argument 1494 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible> { in __pinned_init() argument
|
| H A D | __internal.rs | 202 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse() 209 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 | 248 impl From<core::convert::Infallible> for Error { 249 fn from(e: core::convert::Infallible) -> Error { in from()
|
| H A D | types.rs | 368 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| { in ffi_init()
|