diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-22 13:26:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-22 13:26:42 +0100 |
| commit | 83b68581461df8968e408bec1b979ed2e3a8f0c5 (patch) | |
| tree | 9c36f1ccb25187ff20eac970847b554ddd01df8b /src/model/styles.rs | |
| parent | a2d77e36bab83056e3c487adfbeff161485ca47d (diff) | |
Math framework
Diffstat (limited to 'src/model/styles.rs')
| -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 |
