Remove hash_layout method from Widget trait
This commit is contained in:
parent
9fe5080153
commit
1313c94e3b
35 changed files with 105 additions and 636 deletions
|
|
@ -6,8 +6,7 @@ use crate::image;
|
|||
use crate::layout;
|
||||
use crate::renderer;
|
||||
use crate::{
|
||||
ContentFit, Element, Hasher, Layout, Length, Point, Rectangle, Size,
|
||||
Vector, Widget,
|
||||
ContentFit, Element, Layout, Length, Point, Rectangle, Size, Vector, Widget,
|
||||
};
|
||||
|
||||
use std::hash::Hash;
|
||||
|
|
@ -149,16 +148,6 @@ where
|
|||
render(renderer)
|
||||
}
|
||||
}
|
||||
|
||||
fn hash_layout(&self, state: &mut Hasher) {
|
||||
struct Marker;
|
||||
std::any::TypeId::of::<Marker>().hash(state);
|
||||
|
||||
self.handle.hash(state);
|
||||
self.width.hash(state);
|
||||
self.height.hash(state);
|
||||
self.content_fit.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, Message, Renderer, Handle> From<Image<Handle>>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue