Merge pull request #185 from daxpedda/pub-hash-layout

Make `Element::hash_layout` public.
This commit is contained in:
Héctor Ramón 2020-02-10 21:20:26 +01:00 committed by GitHub
commit 3a00f3398c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}