Fixed autoscroll timing
This commit is contained in:
parent
da78abd99f
commit
cb3e873a67
4 changed files with 201 additions and 160 deletions
|
@ -146,14 +146,14 @@ where
|
|||
}
|
||||
|
||||
pub trait MapRangeEndsExt<R> {
|
||||
fn map_endpoints<T, F>(self, f: F) -> Range<T>
|
||||
fn map_range<T, F>(self, f: F) -> Range<T>
|
||||
where
|
||||
Self: Sized,
|
||||
F: Fn(R) -> T;
|
||||
}
|
||||
|
||||
impl<R> MapRangeEndsExt<R> for Range<R> {
|
||||
fn map_endpoints<T, F>(self, f: F) -> Range<T>
|
||||
fn map_range<T, F>(self, f: F) -> Range<T>
|
||||
where
|
||||
Self: Sized,
|
||||
F: Fn(R) -> T,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue