mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-22 16:49:22 -05:00
chore: rustfmt
This commit is contained in:
parent
074685acab
commit
c242e51936
7 changed files with 9 additions and 9 deletions
|
@ -130,8 +130,8 @@ use std::rc::Rc;
|
||||||
///
|
///
|
||||||
/// #### Different Types
|
/// #### Different Types
|
||||||
///
|
///
|
||||||
/// `SyncSignalOptions::default()` is only defined if the two signal types are identical.
|
/// `SyncSignalOptions::default()` is only defined if the two signal types are identical.
|
||||||
/// Otherwise, you have to initialize the options with `with_transforms` or `with_assigns` instead
|
/// Otherwise, you have to initialize the options with `with_transforms` or `with_assigns` instead
|
||||||
/// of `default`.
|
/// of `default`.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -336,7 +336,7 @@ pub struct SyncSignalOptions<L, R> {
|
||||||
|
|
||||||
/// How to transform or assign the values to each other
|
/// How to transform or assign the values to each other
|
||||||
/// If `L` and `R` are identical this defaults to the simple `=` operator. If the types are
|
/// If `L` and `R` are identical this defaults to the simple `=` operator. If the types are
|
||||||
/// not the same, then you have to choose to either use [`SyncSignalOptions::with_transforms`]
|
/// not the same, then you have to choose to either use [`SyncSignalOptions::with_transforms`]
|
||||||
/// or [`SyncSignalOptions::with_assigns`].
|
/// or [`SyncSignalOptions::with_assigns`].
|
||||||
#[builder(skip)]
|
#[builder(skip)]
|
||||||
transforms: SyncTransforms<L, R>,
|
transforms: SyncTransforms<L, R>,
|
||||||
|
|
|
@ -4,7 +4,7 @@ use leptos::ev::{copy, cut};
|
||||||
use leptos::*;
|
use leptos::*;
|
||||||
|
|
||||||
/// Reactive [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API).
|
/// Reactive [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API).
|
||||||
///
|
///
|
||||||
/// Provides the ability to respond to clipboard commands (cut, copy, and paste)
|
/// Provides the ability to respond to clipboard commands (cut, copy, and paste)
|
||||||
/// as well as to asynchronously read from and write to the system clipboard.
|
/// as well as to asynchronously read from and write to the system clipboard.
|
||||||
/// Access to the contents of the clipboard is gated behind the
|
/// Access to the contents of the clipboard is gated behind the
|
||||||
|
|
|
@ -2,7 +2,7 @@ use cfg_if::cfg_if;
|
||||||
use leptos::*;
|
use leptos::*;
|
||||||
|
|
||||||
/// Reactive [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent).
|
/// Reactive [DeviceOrientationEvent](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent).
|
||||||
///
|
///
|
||||||
/// Provide web developers with information from the physical orientation of
|
/// Provide web developers with information from the physical orientation of
|
||||||
/// the device running the web page.
|
/// the device running the web page.
|
||||||
///
|
///
|
||||||
|
|
|
@ -13,7 +13,7 @@ cfg_if! { if #[cfg(not(feature = "ssr"))] {
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/// Use EventListener with ease.
|
/// Use EventListener with ease.
|
||||||
///
|
///
|
||||||
/// Register using [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) on mounted,
|
/// Register using [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) on mounted,
|
||||||
/// and [removeEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener) automatically on cleanup.
|
/// and [removeEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener) automatically on cleanup.
|
||||||
///
|
///
|
||||||
|
|
|
@ -3,7 +3,7 @@ use default_struct_builder::DefaultBuilder;
|
||||||
use leptos::*;
|
use leptos::*;
|
||||||
|
|
||||||
/// Reactive [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API).
|
/// Reactive [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API).
|
||||||
///
|
///
|
||||||
/// It allows the user to provide their location to web applications if they so desire. For privacy reasons,
|
/// It allows the user to provide their location to web applications if they so desire. For privacy reasons,
|
||||||
/// the user is asked for permission to report location information.
|
/// the user is asked for permission to report location information.
|
||||||
///
|
///
|
||||||
|
|
|
@ -151,7 +151,7 @@ async fn create_media(video: bool, audio: bool) -> Result<web_sys::MediaStream,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Options for [`use_user_media_with_options`].
|
/// Options for [`use_user_media_with_options`].
|
||||||
///
|
///
|
||||||
/// Either or both constraints must be specified.
|
/// Either or both constraints must be specified.
|
||||||
/// If the browser cannot find all media tracks with the specified types that meet the constraints given,
|
/// If the browser cannot find all media tracks with the specified types that meet the constraints given,
|
||||||
/// then the returned promise is rejected with `NotFoundError`
|
/// then the returned promise is rejected with `NotFoundError`
|
||||||
|
|
|
@ -359,7 +359,7 @@ impl From<&UseWebNotificationOptions> for web_sys::NotificationOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Options for [`UseWebNotificationReturn::show`].
|
/// Options for [`UseWebNotificationReturn::show`].
|
||||||
///
|
///
|
||||||
/// This can be used to override options passed to [`use_web_notification`].
|
/// This can be used to override options passed to [`use_web_notification`].
|
||||||
/// See [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/API/notification) for more info.
|
/// See [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/API/notification) for more info.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Reference in a new issue