Home
last modified time | relevance | path

Searched refs:FnOnce (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/rust/kernel/
Dtypes.rs156 pub struct ScopeGuard<T, F: FnOnce(T)>(Option<(T, F)>);
158 impl<T, F: FnOnce(T)> ScopeGuard<T, F> {
175 pub fn new(cleanup: impl FnOnce()) -> ScopeGuard<(), impl FnOnce(())> { in new() argument
180 impl<T, F: FnOnce(T)> Deref for ScopeGuard<T, F> {
189 impl<T, F: FnOnce(T)> DerefMut for ScopeGuard<T, F> {
196 impl<T, F: FnOnce(T)> Drop for ScopeGuard<T, F> {
239 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init()
Dinit.rs820 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain()
836 F: FnOnce(Pin<&mut T>) -> Result<(), E>,
922 F: FnOnce(&mut T) -> Result<(), E>, in chain()
937 F: FnOnce(&mut T) -> Result<(), E>,
955 F: FnOnce(&mut T) -> Result<(), E>,
977 f: impl FnOnce(*mut T) -> Result<(), E>, in pin_init_from_closure()
996 f: impl FnOnce(*mut T) -> Result<(), E>, in init_from_closure()
Derror.rs328 F: FnOnce() -> Result<T>, in from_result()
/linux-6.6.21/rust/kernel/init/
D__internal.rs27 F: FnOnce(*mut T) -> Result<(), E>,
39 F: FnOnce(*mut T) -> Result<(), E>,
70 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
99 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure()
/linux-6.6.21/rust/kernel/sync/
Dlock.rs143 pub(crate) fn do_unlocked(&mut self, cb: impl FnOnce()) { in do_unlocked() argument
/linux-6.6.21/rust/alloc/
Dboxed.rs2007 impl<Args: Tuple, F: FnOnce<Args> + ?Sized, A: Allocator> FnOnce<Args> for Box<F, A> {
2008 type Output = <F as FnOnce<Args>>::Output;
2011 <F as FnOnce<Args>>::call_once(*self, args) in call_once()