style::values

Type Alias AtomIdent

Source
pub type AtomIdent = GenericAtomIdent<AtomStaticSet>;
Expand description

A generic CSS <ident> stored as an Atom, for the default atom set.

Aliased Type§

struct AtomIdent(pub Atom<AtomStaticSet>);

Fields§

§0: Atom<AtomStaticSet>

Implementations

Source§

impl<Set: StaticAtomSet> GenericAtomIdent<Set>

Source

pub fn new(atom: Atom<Set>) -> Self

Constructs a new GenericAtomIdent.

Source

pub fn cast<'a>(atom: &'a Atom<Set>) -> &'a Self

Cast an atom ref to an AtomIdent ref.

Trait Implementations§

Source§

impl ToComputedValue for AtomIdent

Source§

type ComputedValue = GenericAtomIdent<AtomStaticSet>

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

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

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

fn from_computed_value(other: &Self) -> Self

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

impl ToResolvedValue for AtomIdent

Source§

type ResolvedValue = GenericAtomIdent<AtomStaticSet>

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

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

Convert a resolved value to a resolved value.
Source§

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

Convert a resolved value to resolved value form.
Source§

impl<Set: StaticAtomSet> Borrow<Atom<Set>> for GenericAtomIdent<Set>

Source§

fn borrow(&self) -> &Atom<Set>

Immutably borrows from an owned value. Read more
Source§

impl<Set: StaticAtomSet> Clone for GenericAtomIdent<Set>

Source§

fn clone(&self) -> Self

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<Set: StaticAtomSet> Debug for GenericAtomIdent<Set>

Source§

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

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

impl<Set: StaticAtomSet> Default for GenericAtomIdent<Set>

Source§

fn default() -> Self

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

impl<'a, Set: StaticAtomSet> From<&'a str> for GenericAtomIdent<Set>

Source§

fn from(string: &str) -> Self

Converts to this type from the input type.
Source§

impl<Set: StaticAtomSet> Hash for GenericAtomIdent<Set>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<Set: StaticAtomSet> MallocSizeOf for GenericAtomIdent<Set>

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<Set: StaticAtomSet> PartialEq for GenericAtomIdent<Set>

Source§

fn eq(&self, other: &Self) -> 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<Set: StaticAtomSet> PrecomputedHash for GenericAtomIdent<Set>

Source§

fn precomputed_hash(&self) -> u32

Return the precomputed hash for this item.
Source§

impl<Set: StaticAtomSet> SpecifiedValueInfo for GenericAtomIdent<Set>

Source§

const SUPPORTED_TYPES: u8 = 0u8

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<Set: StaticAtomSet> ToCss for GenericAtomIdent<Set>

Source§

fn to_css<W>(&self, dest: &mut 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<Set: StaticAtomSet> ToCss for GenericAtomIdent<Set>

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<Set: StaticAtomSet> ToShmem for GenericAtomIdent<Set>

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<Set> Deref for GenericAtomIdent<Set>
where Set: StaticAtomSet,

Source§

type Target = Atom<Set>

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl<Set: StaticAtomSet> Eq for GenericAtomIdent<Set>