Struct style::stylesheets::CssRuleTypes
source · pub struct CssRuleTypes(u32);
Expand description
Set of rule types.
Tuple Fields§
§0: u32
Implementations§
source§impl CssRuleTypes
impl CssRuleTypes
sourcepub const IMPORTANT_FORBIDDEN: Self = _
pub const IMPORTANT_FORBIDDEN: Self = _
Rules where !important declarations are forbidden.
sourcepub fn contains(self, ty: CssRuleType) -> bool
pub fn contains(self, ty: CssRuleType) -> bool
Returns whether the rule is in the current set.
sourcepub fn insert(&mut self, ty: CssRuleType)
pub fn insert(&mut self, ty: CssRuleType)
Inserts a rule type into the set.
sourcepub fn intersects(self, other: Self) -> bool
pub fn intersects(self, other: Self) -> bool
Returns whether any of the types intersect.
Trait Implementations§
source§impl Clone for CssRuleTypes
impl Clone for CssRuleTypes
source§fn clone(&self) -> CssRuleTypes
fn clone(&self) -> CssRuleTypes
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 CssRuleTypes
impl Debug for CssRuleTypes
source§impl Default for CssRuleTypes
impl Default for CssRuleTypes
source§fn default() -> CssRuleTypes
fn default() -> CssRuleTypes
Returns the “default value” for a type. Read more
source§impl From<CssRuleType> for CssRuleTypes
impl From<CssRuleType> for CssRuleTypes
source§fn from(ty: CssRuleType) -> Self
fn from(ty: CssRuleType) -> Self
Converts to this type from the input type.
source§impl PartialEq for CssRuleTypes
impl PartialEq for CssRuleTypes
source§fn eq(&self, other: &CssRuleTypes) -> bool
fn eq(&self, other: &CssRuleTypes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CssRuleTypes
impl Eq for CssRuleTypes
impl StructuralPartialEq for CssRuleTypes
Auto Trait Implementations§
impl Freeze for CssRuleTypes
impl RefUnwindSafe for CssRuleTypes
impl Send for CssRuleTypes
impl Sync for CssRuleTypes
impl Unpin for CssRuleTypes
impl UnwindSafe for CssRuleTypes
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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