mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 09:25:01 +00:00
Fix doc for Finder::call_on
This commit is contained in:
parent
28ce8ca8bd
commit
4852d25f51
@ -10,10 +10,12 @@ use views::{IdView, ViewRef};
|
||||
///
|
||||
/// [`View::call_on_any`]: ./trait.View.html#method.call_on_any
|
||||
pub trait Finder {
|
||||
/// Tries to find the view pointed to by the given selector.
|
||||
/// Runs a callback on the view identified by `sel`.
|
||||
///
|
||||
/// If the view is found, return the result of `callback`.
|
||||
///
|
||||
/// If the view is not found, or if it is not of the asked type,
|
||||
/// it returns None.
|
||||
/// it returns `None`.
|
||||
fn call_on<V, F, R>(&mut self, sel: &Selector, callback: F) -> Option<R>
|
||||
where
|
||||
V: View + Any,
|
||||
|
Loading…
Reference in New Issue
Block a user