pub struct PropertyDeclarationIdSet {
longhands: LonghandIdSet,
custom: PrecomputedHashSet<Name>,
}
Expand description
A set of properties.
Fields§
§longhands: LonghandIdSet
§custom: PrecomputedHashSet<Name>
Implementations§
source§impl PropertyDeclarationIdSet
impl PropertyDeclarationIdSet
sourcepub fn insert(&mut self, id: PropertyDeclarationId<'_>) -> bool
pub fn insert(&mut self, id: PropertyDeclarationId<'_>) -> bool
Add the given property to the set.
sourcepub fn contains(&self, id: PropertyDeclarationId<'_>) -> bool
pub fn contains(&self, id: PropertyDeclarationId<'_>) -> bool
Return whether the given property is in the set.
sourcepub fn remove(&mut self, id: PropertyDeclarationId<'_>)
pub fn remove(&mut self, id: PropertyDeclarationId<'_>)
Remove the given property from the set.
sourcepub fn contains_any_reset(&self) -> bool
pub fn contains_any_reset(&self) -> bool
Returns whether this set contains any reset longhand.
sourcepub fn contains_all_longhands(&self, longhands: &LonghandIdSet) -> bool
pub fn contains_all_longhands(&self, longhands: &LonghandIdSet) -> bool
Returns whether this set contains all longhands in the specified set.
sourcepub fn contains_all(&self, properties: &PropertyDeclarationIdSet) -> bool
pub fn contains_all(&self, properties: &PropertyDeclarationIdSet) -> bool
Returns whether this set contains all properties in the specified set.
sourcepub fn iter(&self) -> PropertyDeclarationIdSetIterator<'_> ⓘ
pub fn iter(&self) -> PropertyDeclarationIdSetIterator<'_> ⓘ
Iterate over the current property declaration id set.
Trait Implementations§
source§impl Clone for PropertyDeclarationIdSet
impl Clone for PropertyDeclarationIdSet
source§fn clone(&self) -> PropertyDeclarationIdSet
fn clone(&self) -> PropertyDeclarationIdSet
Returns a copy 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 PropertyDeclarationIdSet
impl Debug for PropertyDeclarationIdSet
source§impl Default for PropertyDeclarationIdSet
impl Default for PropertyDeclarationIdSet
source§fn default() -> PropertyDeclarationIdSet
fn default() -> PropertyDeclarationIdSet
Returns the “default value” for a type. Read more
source§impl MallocSizeOf for PropertyDeclarationIdSet
impl MallocSizeOf for PropertyDeclarationIdSet
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl ToShmem for PropertyDeclarationIdSet
impl ToShmem for PropertyDeclarationIdSet
Auto Trait Implementations§
impl Freeze for PropertyDeclarationIdSet
impl RefUnwindSafe for PropertyDeclarationIdSet
impl Send for PropertyDeclarationIdSet
impl Sync for PropertyDeclarationIdSet
impl Unpin for PropertyDeclarationIdSet
impl UnwindSafe for PropertyDeclarationIdSet
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> 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> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert