markup5ever

Type Alias Namespace

source
pub type Namespace = Atom<NamespaceStaticSet>;

Aliased Type§

struct Namespace { /* private fields */ }

Implementations

source§

impl<Static> Atom<Static>
where Static: StaticAtomSet,

source

pub fn get_hash(&self) -> u32

Get the hash of the string as it is stored in the set.

source

pub fn try_static(string_to_add: &str) -> Option<Atom<Static>>

source§

impl<Static> Atom<Static>
where Static: StaticAtomSet,

source

pub fn to_ascii_uppercase(&self) -> Atom<Static>

source

pub fn to_ascii_lowercase(&self) -> Atom<Static>

source

pub fn eq_ignore_ascii_case(&self, other: &Atom<Static>) -> bool

source

pub fn eq_str_ignore_ascii_case(&self, other: &str) -> bool

Like eq_ignore_ascii_case, but takes an unhashed string as other.

Trait Implementations

source§

impl<Static> AsRef<str> for Atom<Static>
where Static: StaticAtomSet,

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<Static> Clone for Atom<Static>
where Static: StaticAtomSet,

source§

fn clone(&self) -> Atom<Static>

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<Static> Debug for Atom<Static>
where Static: StaticAtomSet,

source§

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

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

impl<Static> Default for Atom<Static>
where Static: StaticAtomSet,

source§

fn default() -> Atom<Static>

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

impl<Static> Deref for Atom<Static>
where Static: StaticAtomSet,

source§

type Target = str

The resulting type after dereferencing.
source§

fn deref(&self) -> &str

Dereferences the value.
source§

impl<'a, Static> Deserialize<'a> for Atom<Static>
where Static: StaticAtomSet,

source§

fn deserialize<D>( deserializer: D, ) -> Result<Atom<Static>, <D as Deserializer<'a>>::Error>
where D: Deserializer<'a>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<Static> Display for Atom<Static>
where Static: StaticAtomSet,

source§

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

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

impl<Static> Drop for Atom<Static>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, Static> From<&'a Atom<Static>> for Atom<Static>
where Static: StaticAtomSet,

source§

fn from(atom: &'a Atom<Static>) -> Atom<Static>

Converts to this type from the input type.
source§

impl<'a, Static> From<&'a str> for Atom<Static>
where Static: StaticAtomSet,

source§

fn from(string_to_add: &str) -> Atom<Static>

Converts to this type from the input type.
source§

impl<'a, Static> From<Cow<'a, str>> for Atom<Static>
where Static: StaticAtomSet,

source§

fn from(string_to_add: Cow<'a, str>) -> Atom<Static>

Converts to this type from the input type.
source§

impl<Static> From<String> for Atom<Static>
where Static: StaticAtomSet,

source§

fn from(string_to_add: String) -> Atom<Static>

Converts to this type from the input type.
source§

impl<Static> Hash for Atom<Static>
where Static: StaticAtomSet,

source§

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

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<Static> Ord for Atom<Static>
where Static: StaticAtomSet,

source§

fn cmp(&self, other: &Atom<Static>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
source§

impl<Static> PartialEq<String> for Atom<Static>
where Static: StaticAtomSet,

source§

fn eq(&self, other: &String) -> 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<Static> PartialEq<str> for Atom<Static>
where Static: StaticAtomSet,

source§

fn eq(&self, other: &str) -> 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<Static> PartialEq for Atom<Static>
where Static: PartialEq,

source§

fn eq(&self, other: &Atom<Static>) -> 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<Static> PartialOrd for Atom<Static>
where Static: StaticAtomSet,

source§

fn partial_cmp(&self, other: &Atom<Static>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<Static> PrecomputedHash for Atom<Static>
where Static: StaticAtomSet,

source§

fn precomputed_hash(&self) -> u32

Return the precomputed hash for this item.
source§

impl<Static> Serialize for Atom<Static>
where Static: StaticAtomSet,

source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<Static> Eq for Atom<Static>
where Static: Eq,

source§

impl<Static> StructuralPartialEq for Atom<Static>