summaryrefslogtreecommitdiffstats
path: root/src/widget
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/widget.rs2
-rw-r--r--src/widget/button.rs2
-rw-r--r--src/widget/checkbox.rs2
-rw-r--r--src/widget/column.rs4
-rw-r--r--src/widget/radio.rs2
-rw-r--r--src/widget/row.rs4
-rw-r--r--src/widget/slider.rs2
-rw-r--r--src/widget/text.rs2
8 files changed, 10 insertions, 10 deletions
diff --git a/src/widget.rs b/src/widget.rs
index 420e5534..c674b3e3 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -83,7 +83,7 @@ pub trait Widget<Message, Renderer>: std::fmt::Debug {
/// [`Widget`]: trait.Widget.html
/// [`Layout`]: ../struct.Layout.html
/// [`Text`]: text/struct.Text.html
- fn hash(&self, state: &mut Hasher);
+ fn hash_layout(&self, state: &mut Hasher);
/// Processes a runtime [`Event`].
///
diff --git a/src/widget/button.rs b/src/widget/button.rs
index 2f7a641c..d77ef8ce 100644
--- a/src/widget/button.rs
+++ b/src/widget/button.rs
@@ -187,7 +187,7 @@ where
)
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.style.hash(state);
}
}
diff --git a/src/widget/checkbox.rs b/src/widget/checkbox.rs
index 4fc022a5..75add65c 100644
--- a/src/widget/checkbox.rs
+++ b/src/widget/checkbox.rs
@@ -158,7 +158,7 @@ where
)
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.label.hash(state);
}
}
diff --git a/src/widget/column.rs b/src/widget/column.rs
index d2688912..ffef1a5e 100644
--- a/src/widget/column.rs
+++ b/src/widget/column.rs
@@ -199,12 +199,12 @@ impl<'a, Message, Renderer> Widget<Message, Renderer>
cursor
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.style.hash(state);
self.spacing.hash(state);
for child in &self.children {
- child.widget.hash(state);
+ child.widget.hash_layout(state);
}
}
}
diff --git a/src/widget/radio.rs b/src/widget/radio.rs
index 7bcb0da2..ead06053 100644
--- a/src/widget/radio.rs
+++ b/src/widget/radio.rs
@@ -168,7 +168,7 @@ where
)
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.label.hash(state);
}
}
diff --git a/src/widget/row.rs b/src/widget/row.rs
index c4121157..c85c85ea 100644
--- a/src/widget/row.rs
+++ b/src/widget/row.rs
@@ -196,12 +196,12 @@ impl<'a, Message, Renderer> Widget<Message, Renderer>
cursor
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.style.hash(state);
self.spacing.hash(state);
for child in &self.children {
- child.widget.hash(state);
+ child.widget.hash_layout(state);
}
}
}
diff --git a/src/widget/slider.rs b/src/widget/slider.rs
index ced0021c..93d4e7e2 100644
--- a/src/widget/slider.rs
+++ b/src/widget/slider.rs
@@ -169,7 +169,7 @@ where
)
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.style.hash(state);
}
}
diff --git a/src/widget/text.rs b/src/widget/text.rs
index 858488d3..fb6e30b9 100644
--- a/src/widget/text.rs
+++ b/src/widget/text.rs
@@ -134,7 +134,7 @@ where
MouseCursor::OutOfBounds
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.style.hash(state);
self.content.hash(state);