Home
last modified time | relevance | path

Searched refs:E (Results 1 – 14 of 14) sorted by relevance

/rust/pin-init/src/
A Dalloc.rs30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
32 E: From<AllocError>; in try_pin_init()
50 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
52 E: From<AllocError>; in try_init()
82 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
84 E: From<AllocError>, in try_pin_init()
90 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
100 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init()
118 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init()
139 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init() argument
[all …]
A Dlib.rs1099 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E>
1206 unsafe impl<T: ?Sized, E, I, F> Init<T, E> for ChainInit<I, F, T, E>
1222 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E>
1294 pub const unsafe fn cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> { in cast_init() argument
1415 unsafe impl<T, E> Init<T, E> for Result<T, E> {
1426 unsafe impl<T, E> PinInit<T, E> for Result<T, E> {
1442 fn write_init<E>(self, init: impl Init<T, E>) -> Result<Self::Initialized, E>; in write_init() argument
1708 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E>; in pin_init() argument
1712 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init() argument
1719 fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init() argument
[all …]
A D__internal.rs23 pub(crate) struct InitClosure<F, T: ?Sized, E>(pub(crate) F, pub(crate) Invariant<(E, T)>);
27 unsafe impl<T: ?Sized, F, E> Init<T, E> for InitClosure<F, T, E>
29 F: FnOnce(*mut T) -> Result<(), E>,
32 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() argument
39 unsafe impl<T: ?Sized, F, E> PinInit<T, E> for InitClosure<F, T, E>
41 F: FnOnce(*mut T) -> Result<(), E>,
71 fn make_closure<F, O, E>(self, f: F) -> F in make_closure() argument
73 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
101 fn make_closure<F, O, E>(self, f: F) -> F in make_closure() argument
103 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
[all …]
A Dmacros.rs1003 $pvis unsafe fn $p_field<E>(
1006 init: impl $crate::PinInit<$p_type, E>,
1007 ) -> ::core::result::Result<(), E> {
1014 $fvis unsafe fn $field<E>(
1017 init: impl $crate::Init<$type, E>,
1018 ) -> ::core::result::Result<(), E> {
/rust/kernel/
A Dinit.rs147 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() argument
149 E: From<AllocError>; in try_pin_init()
155 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf> in pin_init() argument
157 Error: From<E>, in pin_init()
167 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() argument
169 E: From<AllocError>; in try_init()
172 fn init<E>(init: impl Init<T, E>, flags: Flags) -> error::Result<Self> in init() argument
174 Error: From<E>, in init()
A Dtypes.rs384 pub fn try_ffi_init<E>( in try_ffi_init() argument
385 init_func: impl FnOnce(*mut T) -> Result<(), E>, in try_ffi_init()
386 ) -> impl PinInit<Self, E> { in try_ffi_init()
390 pin_init::pin_init_from_closure::<_, E>(move |slot| init_func(Self::cast_into(slot))) in try_ffi_init()
415 fn pin_init<E>(slot: impl PinInit<T, E>) -> impl PinInit<Self, E> { in pin_init() argument
421 unsafe { PinInit::<T, E>::__pinned_init(slot, ptr) } in pin_init()
A Ddevres.rs129 pub fn new<'a, E>( in new()
131 data: impl PinInit<T, E> + 'a, in new()
135 Error: From<E>, in new() argument
352 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register() argument
355 Error: From<E>, in register() argument
A Drevocable.rs85 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> { in new() argument
89 }? E) in new()
A Dkunit.rs179 impl<T, E> TestResult for Result<T, E> {
A Derror.rs376 pub type Result<T = (), E = Error> = core::result::Result<T, E>;
/rust/kernel/sync/
A Darc.rs211 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() argument
213 E: From<AllocError>, in try_pin_init()
219 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() argument
221 E: From<AllocError>, in try_init()
726 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self::PinnedSelf, E> in try_pin_init() argument
728 E: From<AllocError>, in try_pin_init()
734 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() argument
736 E: From<AllocError>, in try_init()
745 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init() argument
754 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init() argument
[all …]
/rust/kernel/alloc/
A Dkbox.rs361 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> { in write_init() argument
370 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init() argument
387 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> in try_pin_init() argument
389 E: From<AllocError>, in try_pin_init()
395 fn try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in try_init() argument
397 E: From<AllocError>, in try_init()
/rust/kernel/list/
A Darc.rs183 pub fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> in pin_init() argument
185 E: From<AllocError>, in pin_init()
194 pub fn init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in init() argument
196 E: From<AllocError>, in init()
/rust/pin-init/
A DREADME.md114 To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
138 [`impl PinInit<T, E>`] directly from a closure. Of course you have to ensure that the closure
228 [`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
229 [`impl Init<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.Init.html

Completed in 29 milliseconds