Home
last modified time | relevance | path

Searched refs:F (Results 1 – 10 of 10) sorted by relevance

/rust/pin-init/src/
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>,
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()
A Dlib.rs1084 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument
1093 pub struct ChainPinInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, T)>);
1099 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainPinInit<I, F, T, E>
1102 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
1192 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
1194 F: FnOnce(&mut T) -> Result<(), E>, in chain()
1201 pub struct ChainInit<I, F, T: ?Sized, E>(I, F, __internal::Invariant<(E, T)>);
1206 unsafe impl<T: ?Sized, E, I, F> Init<T, E> for ChainInit<I, F, T, E>
1209 F: FnOnce(&mut T) -> Result<(), E>,
1222 unsafe impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E>
[all …]
/rust/kernel/
A Dtypes.rs220 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
222 impl<T, F: FnOnce(T)> ScopeGuard<T, F> {
224 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
244 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> {
253 impl<T, F: FnOnce(T)> DerefMut for ScopeGuard<T, F> {
260 impl<T, F: FnOnce(T)> Drop for ScopeGuard<T, F> {
A Dworkqueue.rs418 unsafe fn __enqueue<F>(self, queue_work_on: F) -> Self::EnqueueOutput in __enqueue()
420 F: FnOnce(*mut bindings::work_struct) -> bool; in __enqueue()
853 unsafe fn __enqueue<F>(self, queue_work_on: F) -> Self::EnqueueOutput in __enqueue()
855 F: FnOnce(*mut bindings::work_struct) -> bool, in __enqueue()
912 unsafe fn __enqueue<F>(self, queue_work_on: F) -> Self::EnqueueOutput in __enqueue()
914 F: FnOnce(*mut bindings::work_struct) -> bool, in __enqueue()
A Ddma.rs510 pub unsafe fn field_read<F: FromBytes>(&self, field: *const F) -> F { in field_read() argument
533 pub unsafe fn field_write<F: AsBytes>(&self, field: *mut F, val: F) { in field_write() argument
A Dxarray.rs181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load() argument
183 F: FnOnce(NonNull<c_void>) -> U, in load()
A Drevocable.rs140 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with()
A Derror.rs455 pub fn from_result<T, F>(f: F) -> T in from_result()
458 F: FnOnce() -> Result<T>, in from_result()
A Ddevres.rs257 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with()
/rust/kernel/time/
A Dhrtimer.rs249 fn start_scoped<T, F>(self, expires: <Self::TimerMode as HrTimerMode>::Expires, f: F) -> T in start_scoped()
251 F: FnOnce() -> T; in start_scoped()
263 fn start_scoped<U, F>( in start_scoped()
266 f: F, in start_scoped() argument
269 F: FnOnce() -> U, in start_scoped()

Completed in 20 milliseconds