pub struct PseudoClassSet(pub HashSet<PseudoClass>);Expand description
A set of active pseudo-classes for a widget.
Tuple Fields§
§0: HashSet<PseudoClass>Implementations§
Source§impl PseudoClassSet
impl PseudoClassSet
Sourcepub fn insert(&mut self, cls: PseudoClass)
pub fn insert(&mut self, cls: PseudoClass)
Add a pseudo-class to the set.
Sourcepub fn remove(&mut self, cls: &PseudoClass)
pub fn remove(&mut self, cls: &PseudoClass)
Remove a pseudo-class from the set.
Sourcepub fn contains(&self, cls: &PseudoClass) -> bool
pub fn contains(&self, cls: &PseudoClass) -> bool
Returns true if the given pseudo-class is active.
Trait Implementations§
Source§impl Clone for PseudoClassSet
impl Clone for PseudoClassSet
Source§fn clone(&self) -> PseudoClassSet
fn clone(&self) -> PseudoClassSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PseudoClassSet
impl Debug for PseudoClassSet
Source§impl Default for PseudoClassSet
impl Default for PseudoClassSet
Source§fn default() -> PseudoClassSet
fn default() -> PseudoClassSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for PseudoClassSet
impl PartialEq for PseudoClassSet
impl Eq for PseudoClassSet
impl StructuralPartialEq for PseudoClassSet
Auto Trait Implementations§
impl Freeze for PseudoClassSet
impl RefUnwindSafe for PseudoClassSet
impl Send for PseudoClassSet
impl Sync for PseudoClassSet
impl Unpin for PseudoClassSet
impl UnsafeUnpin for PseudoClassSet
impl UnwindSafe for PseudoClassSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.