Struct style::properties::LonghandIdSet
source · pub struct LonghandIdSet {
storage: [u32; 7],
}
Expand description
A set of longhand properties
Fields§
§storage: [u32; 7]
Implementations§
source§impl LonghandIdSet
impl LonghandIdSet
sourcepub(super) fn reset() -> &'static Self
pub(super) fn reset() -> &'static Self
The set of non-inherited longhands.
pub(super) fn discrete_animatable() -> &'static Self
pub(super) fn logical() -> &'static Self
sourcepub(super) fn ignored_when_colors_disabled() -> &'static Self
pub(super) fn ignored_when_colors_disabled() -> &'static Self
Returns the set of longhands that are ignored when document colors are disabled.
sourcepub(super) fn visited_dependent() -> &'static Self
pub(super) fn visited_dependent() -> &'static Self
Only a few properties are allowed to depend on the visited state of links. When cascading visited styles, we can save time by only processing these properties.
pub(super) fn prioritary_properties() -> &'static Self
pub(super) fn late_group_only_inherited() -> &'static Self
pub(super) fn late_group() -> &'static Self
sourcepub fn border_background_properties() -> &'static Self
pub fn border_background_properties() -> &'static Self
Returns the set of border properties for the purpose of disabling native appearance.
source§impl LonghandIdSet
impl LonghandIdSet
sourcepub fn iter(&self) -> LonghandIdSetIterator<'_> ⓘ
pub fn iter(&self) -> LonghandIdSetIterator<'_> ⓘ
Iterate over the current longhand id set.
sourcepub fn contains_all(&self, other: &Self) -> bool
pub fn contains_all(&self, other: &Self) -> bool
Returns whether this set contains at least every longhand that other
also contains.
sourcepub fn contains_any(&self, other: &Self) -> bool
pub fn contains_any(&self, other: &Self) -> bool
Returns whether this set contains any longhand that other
also contains.
sourcepub fn remove_all(&mut self, other: &Self)
pub fn remove_all(&mut self, other: &Self)
Remove all the given properties from the set.
sourcepub fn contains(&self, id: LonghandId) -> bool
pub fn contains(&self, id: LonghandId) -> bool
Return whether the given property is in the set
sourcepub fn contains_any_reset(&self) -> bool
pub fn contains_any_reset(&self) -> bool
Return whether this set contains any reset longhand.
sourcepub fn insert(&mut self, id: LonghandId)
pub fn insert(&mut self, id: LonghandId)
Add the given property to the set
sourcepub fn remove(&mut self, id: LonghandId)
pub fn remove(&mut self, id: LonghandId)
Remove the given property from the set
Trait Implementations§
source§impl Clone for LonghandIdSet
impl Clone for LonghandIdSet
source§fn clone(&self) -> LonghandIdSet
fn clone(&self) -> LonghandIdSet
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LonghandIdSet
impl Debug for LonghandIdSet
source§impl Default for LonghandIdSet
impl Default for LonghandIdSet
source§fn default() -> LonghandIdSet
fn default() -> LonghandIdSet
source§impl MallocSizeOf for LonghandIdSet
impl MallocSizeOf for LonghandIdSet
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq for LonghandIdSet
impl PartialEq for LonghandIdSet
source§fn eq(&self, other: &LonghandIdSet) -> bool
fn eq(&self, other: &LonghandIdSet) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl ToShmem for LonghandIdSet
impl ToShmem for LonghandIdSet
impl Copy for LonghandIdSet
impl StructuralPartialEq for LonghandIdSet
Auto Trait Implementations§
impl Freeze for LonghandIdSet
impl RefUnwindSafe for LonghandIdSet
impl Send for LonghandIdSet
impl Sync for LonghandIdSet
impl Unpin for LonghandIdSet
impl UnwindSafe for LonghandIdSet
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
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>
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>
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 more