mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
change to union
This commit is contained in:
parent
db52aa40bf
commit
77958489ee
@ -66,7 +66,7 @@ impl Classes {
|
||||
}
|
||||
|
||||
/// Adds other classes to this class; returning itself.
|
||||
pub fn extend<T: Into<Classes>>(mut self, other: T) -> Self {
|
||||
pub fn union<T: Into<Classes>>(mut self, other: T) -> Self {
|
||||
let mut other: Classes = other.into();
|
||||
self.set.extend(other.set.drain(RangeFull));
|
||||
self
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user