Make Element::hash_layout public.

This commit is contained in:
daxpedda 2020-02-10 20:53:52 +01:00
parent 5d16f431b3
commit 71c108e0e1
No known key found for this signature in database
GPG Key ID: 43D62A3EA388E46F

View File

@ -242,7 +242,10 @@ where
.draw(renderer, defaults, layout, cursor_position)
}
pub(crate) fn hash_layout(&self, state: &mut Hasher) {
/// Computes the _layout_ hash of the [`Element`].
///
/// [`Element`]: struct.Element.html
pub fn hash_layout(&self, state: &mut Hasher) {
self.widget.hash_layout(state);
}
}