Fix documentation in operation::focusable
This commit is contained in:
parent
d5629c103c
commit
ad5bd0970d
1 changed files with 4 additions and 3 deletions
|
|
@ -54,7 +54,8 @@ pub fn focus<T>(target: Id) -> impl Operation<T> {
|
||||||
Focus { target }
|
Focus { target }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Produces an [`Operation`] that generates a [`Count`].
|
/// Produces an [`Operation`] that generates a [`Count`] and chains it with the
|
||||||
|
/// provided function to build a new [`Operation`].
|
||||||
pub fn count<T, O>(f: fn(Count) -> O) -> impl Operation<T>
|
pub fn count<T, O>(f: fn(Count) -> O) -> impl Operation<T>
|
||||||
where
|
where
|
||||||
O: Operation<T> + 'static,
|
O: Operation<T> + 'static,
|
||||||
|
|
@ -95,7 +96,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Produces an [`Operation`] that searches for the current focuses widget, and
|
/// Produces an [`Operation`] that searches for the current focused widget, and
|
||||||
/// - if found, focuses the previous focusable widget.
|
/// - if found, focuses the previous focusable widget.
|
||||||
/// - if not found, focuses the last focusable widget.
|
/// - if not found, focuses the last focusable widget.
|
||||||
pub fn focus_previous<T>() -> impl Operation<T> {
|
pub fn focus_previous<T>() -> impl Operation<T> {
|
||||||
|
|
@ -134,7 +135,7 @@ pub fn focus_previous<T>() -> impl Operation<T> {
|
||||||
count(|count| FocusPrevious { count, current: 0 })
|
count(|count| FocusPrevious { count, current: 0 })
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Produces an [`Operation`] that searches for the current focuses widget, and
|
/// Produces an [`Operation`] that searches for the current focused widget, and
|
||||||
/// - if found, focuses the next focusable widget.
|
/// - if found, focuses the next focusable widget.
|
||||||
/// - if not found, focuses the first focusable widget.
|
/// - if not found, focuses the first focusable widget.
|
||||||
pub fn focus_next<T>() -> impl Operation<T> {
|
pub fn focus_next<T>() -> impl Operation<T> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue