summaryrefslogtreecommitdiff
path: root/src/model/styles.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-22 13:26:42 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-22 13:26:42 +0100
commit83b68581461df8968e408bec1b979ed2e3a8f0c5 (patch)
tree9c36f1ccb25187ff20eac970847b554ddd01df8b /src/model/styles.rs
parenta2d77e36bab83056e3c487adfbeff161485ca47d (diff)
Math framework
Diffstat (limited to 'src/model/styles.rs')
-rw-r--r--src/model/styles.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs
index e78d83cd..27c40309 100644
--- a/src/model/styles.rs
+++ b/src/model/styles.rs
@@ -48,6 +48,11 @@ impl StyleMap {
}
}
+ /// Remove the style that was last set.
+ pub fn unset(&mut self) {
+ self.0.pop();
+ }
+
/// Whether the map contains a style property for the given key.
pub fn contains<K: Key>(&self, _: K) -> bool {
self.0