diff options
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/styles.rs | 5 |
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 |
