Struct style::use_counters::UseCounters
source · pub struct UseCounters {
pub non_custom_properties: NonCustomPropertyUseCounters,
pub counted_unknown_properties: CountedUnknownPropertyUseCounters,
}
Expand description
The use-counter data related to a given document we want to store.
Fields§
§non_custom_properties: NonCustomPropertyUseCounters
The counters for non-custom properties that have been parsed in the document’s stylesheets.
counted_unknown_properties: CountedUnknownPropertyUseCounters
The counters for css properties which we haven’t implemented yet.
Implementations§
Trait Implementations§
source§impl Default for UseCounters
impl Default for UseCounters
source§fn default() -> UseCounters
fn default() -> UseCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for UseCounters
impl !RefUnwindSafe for UseCounters
impl Send for UseCounters
impl !Sync for UseCounters
impl Unpin for UseCounters
impl UnwindSafe for UseCounters
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