mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Merge separate TrackedView impl blocks
This commit is contained in:
parent
f091cec861
commit
22e2360aa1
@ -18,10 +18,6 @@ impl<T: View> TrackedView<T> {
|
||||
self.offset.get()
|
||||
}
|
||||
|
||||
inner_getters!(self.view: T);
|
||||
}
|
||||
|
||||
impl<T: View> TrackedView<T> {
|
||||
/// Creates a new `TrackedView` around `view`.
|
||||
pub fn new(view: T) -> Self {
|
||||
TrackedView {
|
||||
@ -34,6 +30,8 @@ impl<T: View> TrackedView<T> {
|
||||
pub fn with_id(self, id: &str) -> IdView<Self> {
|
||||
IdView::new(id, self)
|
||||
}
|
||||
|
||||
inner_getters!(self.view: T);
|
||||
}
|
||||
|
||||
impl<T: View> ViewWrapper for TrackedView<T> {
|
||||
|
Loading…
Reference in New Issue
Block a user