style::queries::condition

Type Alias ComputedMozPrefFeatureValue

Source
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>

Source§

fn clone(&self) -> MozPrefFeatureValue<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 MozPrefFeatureValue<I>

Source§

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

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

impl<I> MallocSizeOf for MozPrefFeatureValue<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> Parse for MozPrefFeatureValue<I>
where I: Parse,

Source§

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>

Source§

fn eq(&self, other: &MozPrefFeatureValue<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 MozPrefFeatureValue<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 MozPrefFeatureValue<I>
where I: ToComputedValue,

Source§

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

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 MozPrefFeatureValue<I>
where 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> ToShmem for MozPrefFeatureValue<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: Eq> Eq for MozPrefFeatureValue<I>

Source§

impl<I> StructuralPartialEq for MozPrefFeatureValue<I>