From 71c108e0e11e061f279aecad23b5dc794d6d8f65 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Mon, 10 Feb 2020 20:53:52 +0100 Subject: [PATCH] Make `Element::hash_layout` public. --- native/src/element.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/native/src/element.rs b/native/src/element.rs index ae47e893..276f7614 100644 --- a/native/src/element.rs +++ b/native/src/element.rs @@ -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); } }