#[repr(C)]pub struct CSSRule {
reflector_: Reflector,
parent_stylesheet: Dom<CSSStyleSheet>,
parent_stylesheet_removed: Cell<bool>,
}
Fields§
§reflector_: Reflector
§parent_stylesheet: Dom<CSSStyleSheet>
§parent_stylesheet_removed: Cell<bool>
Whether the parentStyleSheet attribute should return null. We keep parent_stylesheet in that case because insertRule needs it for the stylesheet’s base URL and namespace prefixes.
Implementations§
source§impl CSSRule
impl CSSRule
pub fn new_inherited(parent_stylesheet: &CSSStyleSheet) -> CSSRule
pub fn as_specific(&self) -> &dyn SpecificCSSRule
pub fn new_specific( window: &Window, parent_stylesheet: &CSSStyleSheet, rule: StyleCssRule, ) -> Root<Dom<CSSRule>>
pub fn parent_stylesheet(&self) -> &CSSStyleSheet
Trait Implementations§
source§impl CSSRuleMethods<DomTypeHolder> for CSSRule
impl CSSRuleMethods<DomTypeHolder> for CSSRule
source§impl Castable for CSSRule
impl Castable for CSSRule
source§impl IDLInterface for CSSRule
impl IDLInterface for CSSRule
source§impl MallocSizeOf for CSSRule
impl MallocSizeOf for CSSRule
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 MutDomObject for CSSRule
impl MutDomObject for CSSRule
source§impl ToJSValConvertible for CSSRule
impl ToJSValConvertible for CSSRule
impl DerivedFrom<CSSRule> for CSSConditionRule
impl DerivedFrom<CSSRule> for CSSFontFaceRule
impl DerivedFrom<CSSRule> for CSSGroupingRule
impl DerivedFrom<CSSRule> for CSSImportRule
impl DerivedFrom<CSSRule> for CSSKeyframeRule
impl DerivedFrom<CSSRule> for CSSKeyframesRule
impl DerivedFrom<CSSRule> for CSSLayerBlockRule
impl DerivedFrom<CSSRule> for CSSLayerStatementRule
impl DerivedFrom<CSSRule> for CSSMediaRule
impl DerivedFrom<CSSRule> for CSSNamespaceRule
impl DerivedFrom<CSSRule> for CSSRule
impl DerivedFrom<CSSRule> for CSSStyleRule
impl DerivedFrom<CSSRule> for CSSSupportsRule
impl Eq for CSSRule
Auto Trait Implementations§
impl !Freeze for CSSRule
impl !RefUnwindSafe for CSSRule
impl !Send for CSSRule
impl !Sync for CSSRule
impl Unpin for CSSRule
impl !UnwindSafe for CSSRule
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<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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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