style::values::computed::counters

Type Alias CounterSet

Source
pub type CounterSet = CounterSet<i32>;
Expand description

A computed value for the counter-set property.

Aliased Type§

struct CounterSet(pub GenericCounters<i32>);

Fields§

§0: GenericCounters<i32>

Implementations

Source§

impl<I> CounterSet<I>

Source

pub fn new(counters: Vec<CounterPair<I>>) -> Self

Returns a new value for counter-set.

Trait Implementations

Source§

impl<I: Clone> Clone for GenericCounterSet<I>

Source§

fn clone(&self) -> GenericCounterSet<I>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I: Debug> Debug for GenericCounterSet<I>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<I: Default> Default for GenericCounterSet<I>

Source§

fn default() -> GenericCounterSet<I>

Returns the “default value” for a type. Read more
Source§

impl<I> MallocSizeOf for GenericCounterSet<I>
where I: MallocSizeOf,

Source§

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<I: PartialEq> PartialEq for GenericCounterSet<I>

Source§

fn eq(&self, other: &GenericCounterSet<I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<I> SpecifiedValueInfo for GenericCounterSet<I>

Source§

const SUPPORTED_TYPES: u8

Supported CssTypes by the given value type. Read more
Source§

fn collect_completion_keywords(_f: &mut dyn FnMut(&[&'static str]))

Collect value starting words for the given specified value type. This includes keyword and function names which can appear at the beginning of a value of this type. Read more
Source§

impl<I> ToComputedValue for GenericCounterSet<I>
where I: ToComputedValue,

Source§

type ComputedValue = GenericCounterSet<<I as ToComputedValue>::ComputedValue>

The computed value type we’re going to be converted to.
Source§

fn from_computed_value(from: &Self::ComputedValue) -> Self

Convert a computed value to specified value form. Read more
Source§

fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.
Source§

impl<I> ToCss for GenericCounterSet<I>
where I: ToCss, GenericCounters<I>: ToCss,

Source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Serialize self in CSS syntax, writing to dest.
Source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more
Source§

impl<I> ToResolvedValue for GenericCounterSet<I>
where I: ToResolvedValue,

Source§

type ResolvedValue = GenericCounterSet<<I as ToResolvedValue>::ResolvedValue>

The resolved value type we’re going to be converted to.
Source§

fn from_resolved_value(from: Self::ResolvedValue) -> Self

Convert a resolved value to resolved value form.
Source§

fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue

Convert a resolved value to a resolved value.
Source§

impl<I> ToShmem for GenericCounterSet<I>
where I: ToShmem,

Source§

fn to_shmem(&self, builder: &mut SharedMemoryBuilder) -> Result<Self>

Clones this value into a form suitable for writing into a SharedMemoryBuilder. Read more
Source§

impl<I> Deref for CounterSet<I>

Source§

type Target = [GenericCounterPair<I>]

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<I> StructuralPartialEq for GenericCounterSet<I>