pub type ComputedMozPrefFeatureValue = MozPrefFeatureValue<Integer>;
Expand description
The computed -moz-pref() value.
Aliased Type§
enum ComputedMozPrefFeatureValue {
None,
Boolean(BoolValue),
Integer(i32),
String(AtomString),
}
Variants§
None
No pref value, implicitly bool, but also used to represent missing prefs.
Boolean(BoolValue)
A bool value.
Integer(i32)
An integer value, useful for int prefs.
String(AtomString)
A string pref value.
Trait Implementations
Source§impl<I: Clone> Clone for MozPrefFeatureValue<I>
impl<I: Clone> Clone for MozPrefFeatureValue<I>
Source§fn clone(&self) -> MozPrefFeatureValue<I>
fn clone(&self) -> MozPrefFeatureValue<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 MozPrefFeatureValue<I>
impl<I: Debug> Debug for MozPrefFeatureValue<I>
Source§impl<I> MallocSizeOf for MozPrefFeatureValue<I>where
I: MallocSizeOf,
impl<I> MallocSizeOf for MozPrefFeatureValue<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> Parse for MozPrefFeatureValue<I>where
I: Parse,
impl<I> Parse for MozPrefFeatureValue<I>where
I: Parse,
Source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
Source§impl<I: PartialEq> PartialEq for MozPrefFeatureValue<I>
impl<I: PartialEq> PartialEq for MozPrefFeatureValue<I>
Source§impl<I> SpecifiedValueInfo for MozPrefFeatureValue<I>where
I: SpecifiedValueInfo,
impl<I> SpecifiedValueInfo for MozPrefFeatureValue<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 MozPrefFeatureValue<I>where
I: ToComputedValue,
impl<I> ToComputedValue for MozPrefFeatureValue<I>where
I: ToComputedValue,
Source§type ComputedValue = MozPrefFeatureValue<<I as ToComputedValue>::ComputedValue>
type ComputedValue = MozPrefFeatureValue<<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
.