Checkpoint
This commit is contained in:
parent
207d843aee
commit
262f5886a4
44 changed files with 237 additions and 148 deletions
|
@ -13,6 +13,16 @@ pub trait ElementExt<S: 'static + Send + Sync>: Element<ViewState = S> {
|
|||
}
|
||||
self
|
||||
}
|
||||
|
||||
// fn when_some<T, U>(mut self, option: Option<T>, then: impl FnOnce(Self, T) -> U) -> U
|
||||
// where
|
||||
// Self: Sized,
|
||||
// {
|
||||
// if let Some(value) = option {
|
||||
// self = then(self, value);
|
||||
// }
|
||||
// self
|
||||
// }
|
||||
}
|
||||
|
||||
impl<S: 'static + Send + Sync, E: Element<ViewState = S>> ElementExt<S> for E {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue