style

Type Alias LocalName

Source
pub type LocalName = GenericAtomIdent<LocalNameStaticSet>;

Aliased Type§

struct LocalName(pub Atom<LocalNameStaticSet>);

Fields§

§0: Atom<LocalNameStaticSet>

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