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 sync_signal {
    use ::leptos_use_rw_signal::*;
    use ::leptos_use_sync_signal::*;

    use leptos::prelude::*;
    use std::ops::Deref;
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_sync_signal::sync_signal`](https://docs.rs/leptos-use-sync-signal/latest/leptos_use_sync_signal/fn.sync_signal.html).\n\n Add the `leptos-use-sync-signal` crate to your dependencies and use `leptos_use_sync_signal::sync_signal` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-sync-signal` to your dependencies and use `leptos_use_sync_signal::sync_signal` instead."
    )]
    #[inline(always)]
    pub fn sync_signal<LeftRead, RightRead, LeftWrite, RightWrite, T>(
        left: impl Into<UseRwSignal<LeftRead, LeftWrite, T>>,
        right: impl Into<UseRwSignal<RightRead, RightWrite, T>>,
    ) -> impl Fn() + Clone
    where
        T: Clone + Send + Sync + 'static,
        LeftRead: Read + ReadUntracked + Track + Copy + Send + Sync + 'static,
        <LeftRead as Read>::Value: Deref<Target = T>,
        <LeftRead as ReadUntracked>::Value: Deref<Target = T>,
        LeftWrite: Write<Value = T> + Copy + 'static,
        RightRead: Read + ReadUntracked + Track + Copy + Send + Sync + 'static,
        <RightRead as Read>::Value: Deref<Target = T>,
        <RightRead as ReadUntracked>::Value: Deref<Target = T>,
        RightWrite: Write<Value = T> + Copy + 'static,
    {
        ::leptos_use_sync_signal::sync_signal::<LeftRead, RightRead, LeftWrite, RightWrite, T>(
            left, right,
        )
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_sync_signal::sync_signal_with_options`](https://docs.rs/leptos-use-sync-signal/latest/leptos_use_sync_signal/fn.sync_signal_with_options.html).\n\n Add the `leptos-use-sync-signal` crate to your dependencies and use `leptos_use_sync_signal::sync_signal_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-sync-signal` to your dependencies and use `leptos_use_sync_signal::sync_signal_with_options` instead."
    )]
    #[inline(always)]
    pub fn sync_signal_with_options<LeftRead, RightRead, LeftWrite, RightWrite, Left, Right>(
        left: impl Into<UseRwSignal<LeftRead, LeftWrite, Left>>,
        right: impl Into<UseRwSignal<RightRead, RightWrite, Right>>,
        options: SyncSignalOptions<Left, Right>,
    ) -> impl Fn() + Clone
    where
        Left: Clone + Send + Sync + 'static,
        LeftRead: Read + ReadUntracked + Track + Copy + Send + Sync + 'static,
        <LeftRead as Read>::Value: Deref<Target = Left>,
        <LeftRead as ReadUntracked>::Value: Deref<Target = Left>,
        LeftWrite: Write<Value = Left> + Copy + 'static,
        Right: Clone + Send + Sync + 'static,
        RightRead: Read + ReadUntracked + Track + Copy + Send + Sync + 'static,
        <RightRead as Read>::Value: Deref<Target = Right>,
        <RightRead as ReadUntracked>::Value: Deref<Target = Right>,
        RightWrite: Write<Value = Right> + Copy + 'static,
    {
        ::leptos_use_sync_signal::sync_signal_with_options::<
            LeftRead,
            RightRead,
            LeftWrite,
            RightWrite,
            Left,
            Right,
        >(left, right, options)
    }
}