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>
impl<I> CounterSet<I>
Sourcepub fn new(counters: Vec<CounterPair<I>>) -> Self
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>
impl<I: Clone> Clone for GenericCounterSet<I>
Source§fn clone(&self) -> GenericCounterSet<I>
fn clone(&self) -> GenericCounterSet<I>
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<I: Debug> Debug for GenericCounterSet<I>
impl<I: Debug> Debug for GenericCounterSet<I>
Source§impl<I: Default> Default for GenericCounterSet<I>
impl<I: Default> Default for GenericCounterSet<I>
Source§fn default() -> GenericCounterSet<I>
fn default() -> GenericCounterSet<I>
Returns the “default value” for a type. Read more
Source§impl<I> MallocSizeOf for GenericCounterSet<I>where
I: MallocSizeOf,
impl<I> MallocSizeOf for GenericCounterSet<I>where
I: MallocSizeOf,
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<I: PartialEq> PartialEq for GenericCounterSet<I>
impl<I: PartialEq> PartialEq for GenericCounterSet<I>
Source§impl<I> SpecifiedValueInfo for GenericCounterSet<I>where
I: SpecifiedValueInfo,
impl<I> SpecifiedValueInfo for GenericCounterSet<I>where
I: SpecifiedValueInfo,
Source§const SUPPORTED_TYPES: u8
const SUPPORTED_TYPES: u8
Supported CssTypes by the given value type. Read more
Source§impl<I> ToComputedValue for GenericCounterSet<I>where
I: ToComputedValue,
impl<I> ToComputedValue for GenericCounterSet<I>where
I: ToComputedValue,
Source§type ComputedValue = GenericCounterSet<<I as ToComputedValue>::ComputedValue>
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
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
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>
impl<I> ToCss for GenericCounterSet<I>
Source§impl<I> ToResolvedValue for GenericCounterSet<I>where
I: ToResolvedValue,
impl<I> ToResolvedValue for GenericCounterSet<I>where
I: ToResolvedValue,
Source§type ResolvedValue = GenericCounterSet<<I as ToResolvedValue>::ResolvedValue>
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
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
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.