Home
last modified time | relevance | path

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

/linux-6.15/rust/pin-init/examples/
H A Dlinked_list.rs8 convert::Infallible,
32 pub fn new() -> impl PinInit<Self, Infallible> { in new()
37 }? Infallible) in new()
41 pub fn insert_next(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_next()
46 }? Infallible) in insert_next()
50 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self, Infallible> + '_ { in insert_prev()
55 }? Infallible) in insert_prev()
H A Derror.rs5 use core::convert::Infallible;
13 impl From<Infallible> for Error {
14 fn from(e: Infallible) -> Self { in from()
H A Dpthread_mutex.rs18 use std::convert::Infallible;
48 impl From<Infallible> for Error {
49 fn from(e: Infallible) -> Self { in from()
H A Dstatic_init.rs75 ) -> Result<(), core::convert::Infallible> { in __pinned_init() argument
/linux-6.15/rust/pin-init/src/
H A Dlib.rs275 convert::Infallible,
451 let x: ::core::convert::Infallible = x;
734 }? ::core::convert::Infallible)
841 }? ::core::convert::Infallible)
1003 pub unsafe trait PinInit<T: ?Sized, E = Infallible>: Sized {
1102 pub unsafe trait Init<T: ?Sized, E = Infallible>: PinInit<T, E> {
H A D__internal.rs201 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
208 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()
H A Dalloc.rs12 type AllocError = core::convert::Infallible;
/linux-6.15/rust/kernel/
H A Derror.rs228 impl From<core::convert::Infallible> for Error {
229 fn from(e: core::convert::Infallible) -> Error { in from()
H A Dtypes.rs355 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| { in ffi_init()