Struct script::dom::documentorshadowroot::StyleSheetInDocument
source · pub struct StyleSheetInDocument {
pub sheet: Arc<Stylesheet>,
pub owner: Dom<Element>,
}
Fields§
§sheet: Arc<Stylesheet>
§owner: Dom<Element>
Trait Implementations§
source§impl Clone for StyleSheetInDocument
impl Clone for StyleSheetInDocument
source§fn clone(&self) -> StyleSheetInDocument
fn clone(&self) -> StyleSheetInDocument
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 StyleSheetInDocument
impl Debug for StyleSheetInDocument
source§impl MallocSizeOf for StyleSheetInDocument
impl MallocSizeOf for StyleSheetInDocument
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 MallocSizeOf for StyleSheetInDocument
impl MallocSizeOf for StyleSheetInDocument
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 PartialEq for StyleSheetInDocument
impl PartialEq for StyleSheetInDocument
source§impl StylesheetInDocument for StyleSheetInDocument
impl StylesheetInDocument for StyleSheetInDocument
source§fn media<'a>(
&'a self,
guard: &'a SharedRwLockReadGuard<'_>,
) -> Option<&'a MediaList>
fn media<'a>( &'a self, guard: &'a SharedRwLockReadGuard<'_>, ) -> Option<&'a MediaList>
Get the media associated with this stylesheet.
source§fn contents(&self) -> &StylesheetContents
fn contents(&self) -> &StylesheetContents
Returns a reference to the contents of the stylesheet.
source§fn implicit_scope_root(&self) -> Option<ImplicitScopeRoot>
fn implicit_scope_root(&self) -> Option<ImplicitScopeRoot>
Return the implicit scope root for this stylesheet, if one exists.
source§fn rules<'a, 'b>(
&'a self,
guard: &'b SharedRwLockReadGuard<'_>,
) -> &'a [CssRule]where
'b: 'a,
fn rules<'a, 'b>(
&'a self,
guard: &'b SharedRwLockReadGuard<'_>,
) -> &'a [CssRule]where
'b: 'a,
Returns a reference to the list of rules in this stylesheet.
source§fn iter_rules<'a, 'b, C>(
&'a self,
device: &'a Device,
guard: &'a SharedRwLockReadGuard<'b>,
) -> RulesIterator<'a, 'b, C>where
C: NestedRuleIterationCondition,
fn iter_rules<'a, 'b, C>(
&'a self,
device: &'a Device,
guard: &'a SharedRwLockReadGuard<'b>,
) -> RulesIterator<'a, 'b, C>where
C: NestedRuleIterationCondition,
Return an iterator using the condition
C
.source§fn is_effective_for_device(
&self,
device: &Device,
guard: &SharedRwLockReadGuard<'_>,
) -> bool
fn is_effective_for_device( &self, device: &Device, guard: &SharedRwLockReadGuard<'_>, ) -> bool
Returns whether the style-sheet applies for the current device.
source§fn effective_rules<'a, 'b>(
&'a self,
device: &'a Device,
guard: &'a SharedRwLockReadGuard<'b>,
) -> RulesIterator<'a, 'b, EffectiveRules>
fn effective_rules<'a, 'b>( &'a self, device: &'a Device, guard: &'a SharedRwLockReadGuard<'b>, ) -> RulesIterator<'a, 'b, EffectiveRules>
Return an iterator over the effective rules within the style-sheet, as
according to the supplied
Device
.source§impl ToMediaListKey for StyleSheetInDocument
impl ToMediaListKey for StyleSheetInDocument
source§fn to_media_list_key(&self) -> MediaListKey
fn to_media_list_key(&self) -> MediaListKey
Get a
MediaListKey
for this item. This key needs to uniquely identify
the item.Auto Trait Implementations§
impl Freeze for StyleSheetInDocument
impl !RefUnwindSafe for StyleSheetInDocument
impl !Send for StyleSheetInDocument
impl !Sync for StyleSheetInDocument
impl Unpin for StyleSheetInDocument
impl !UnwindSafe for StyleSheetInDocument
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> 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