leptos-use 0.20.0

Collection of essential Leptos utilities inspired by React-Use / VueUse
Documentation
//! Generated by the micro crate split: deprecated forwarding wrappers.

pub mod use_debounce_fn {
    use ::leptos_use_filters::*;

    use leptos::prelude::Signal;
    use std::sync::{Arc, Mutex};
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_debounce_fn`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_debounce_fn.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn` instead."
    )]
    #[inline(always)]
    pub fn use_debounce_fn<F, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
    ) -> impl Fn() -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn() -> R + Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_debounce_fn::<F, R>(func, ms)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_debounce_fn_with_options`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_debounce_fn_with_options.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn_with_options` instead."
    )]
    #[inline(always)]
    pub fn use_debounce_fn_with_options<F, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
        options: DebounceOptions,
    ) -> impl Fn() -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn() -> R + Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_debounce_fn_with_options::<F, R>(func, ms, options)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_debounce_fn_with_arg.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg` instead."
    )]
    #[inline(always)]
    pub fn use_debounce_fn_with_arg<F, Arg, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
    ) -> impl Fn(Arg) -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn(Arg) -> R + Clone + 'static,
        Arg: Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg::<F, Arg, R>(func, ms)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg_and_options`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_debounce_fn_with_arg_and_options.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg_and_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg_and_options` instead."
    )]
    #[inline(always)]
    pub fn use_debounce_fn_with_arg_and_options<F, Arg, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
        options: DebounceOptions,
    ) -> impl Fn(Arg) -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn(Arg) -> R + Clone + 'static,
        Arg: Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_debounce_fn_with_arg_and_options::<F, Arg, R>(
            func, ms, options,
        )
    }
}

pub mod use_throttle_fn {
    use ::leptos_use_filters::*;

    use leptos::prelude::Signal;
    use std::sync::{Arc, Mutex};
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_throttle_fn`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_throttle_fn.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn` instead."
    )]
    #[inline(always)]
    pub fn use_throttle_fn<F, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
    ) -> impl Fn() -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn() -> R + Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_throttle_fn::<F, R>(func, ms)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_throttle_fn_with_options`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_throttle_fn_with_options.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn_with_options` instead."
    )]
    #[inline(always)]
    pub fn use_throttle_fn_with_options<F, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
        options: ThrottleOptions,
    ) -> impl Fn() -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn() -> R + Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_throttle_fn_with_options::<F, R>(func, ms, options)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_throttle_fn_with_arg.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg` instead."
    )]
    #[inline(always)]
    pub fn use_throttle_fn_with_arg<F, Arg, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
    ) -> impl Fn(Arg) -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn(Arg) -> R + Clone + 'static,
        Arg: Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg::<F, Arg, R>(func, ms)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg_and_options`](https://docs.rs/leptos-use-fn-debounce-throttle/latest/leptos_use_fn_debounce_throttle/fn.use_throttle_fn_with_arg_and_options.html).\n\n Add the `leptos-use-fn-debounce-throttle` crate to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg_and_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-fn-debounce-throttle` to your dependencies and use `leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg_and_options` instead."
    )]
    #[inline(always)]
    pub fn use_throttle_fn_with_arg_and_options<F, Arg, R>(
        func: F,
        ms: impl Into<Signal<f64>> + 'static,
        options: ThrottleOptions,
    ) -> impl Fn(Arg) -> Arc<Mutex<Option<R>>> + Clone + Send + Sync
    where
        F: Fn(Arg) -> R + Clone + 'static,
        Arg: Clone + 'static,
        R: 'static,
    {
        ::leptos_use_fn_debounce_throttle::use_throttle_fn_with_arg_and_options::<F, Arg, R>(
            func, ms, options,
        )
    }
}