pub type DefaultAtom = Atom<EmptyStaticAtomSet>;
Expand description
Use this if you don’t care about static atoms.
Aliased Type§
struct DefaultAtom {
unsafe_data: NonZero<u64>,
phantom: PhantomData<EmptyStaticAtomSet>,
}
Fields§
§unsafe_data: NonZero<u64>
§phantom: PhantomData<EmptyStaticAtomSet>
Implementations
Source§impl<Static: StaticAtomSet> Atom<Static>
impl<Static: StaticAtomSet> Atom<Static>
fn static_index(&self) -> u64
pub fn try_static(string_to_add: &str) -> Option<Self>
fn try_static_internal(string_to_add: &str) -> Result<Self, Hashes>
Source§impl<Static: StaticAtomSet> Atom<Static>
impl<Static: StaticAtomSet> Atom<Static>
fn from_mutated_str<F: FnOnce(&mut str)>(s: &str, f: F) -> Self
Sourcepub fn to_ascii_uppercase(&self) -> Self
pub fn to_ascii_uppercase(&self) -> Self
Like to_ascii_uppercase
.
Sourcepub fn to_ascii_lowercase(&self) -> Self
pub fn to_ascii_lowercase(&self) -> Self
Like to_ascii_lowercase
.
Sourcepub fn eq_ignore_ascii_case(&self, other: &Self) -> bool
pub fn eq_ignore_ascii_case(&self, other: &Self) -> bool
Like eq_ignore_ascii_case
.
Sourcepub fn eq_str_ignore_ascii_case(&self, other: &str) -> bool
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: StaticAtomSet> Clone for Atom<Static>
impl<Static: StaticAtomSet> Clone for Atom<Static>
Source§impl<Static: StaticAtomSet> Debug for Atom<Static>
impl<Static: StaticAtomSet> Debug for Atom<Static>
Source§impl<Static: StaticAtomSet> Default for Atom<Static>
impl<Static: StaticAtomSet> Default for Atom<Static>
Source§impl<Static: StaticAtomSet> Deref for Atom<Static>
impl<Static: StaticAtomSet> Deref for Atom<Static>
Source§impl<'a, Static: StaticAtomSet> Deserialize<'a> for Atom<Static>
impl<'a, Static: StaticAtomSet> Deserialize<'a> for Atom<Static>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Static: StaticAtomSet> Display for Atom<Static>
impl<Static: StaticAtomSet> Display for Atom<Static>
Source§impl<Static: StaticAtomSet> Hash for Atom<Static>
impl<Static: StaticAtomSet> Hash for Atom<Static>
Source§impl<Static: StaticAtomSet> Ord for Atom<Static>
impl<Static: StaticAtomSet> Ord for Atom<Static>
Source§impl<Static: StaticAtomSet> PartialOrd for Atom<Static>
impl<Static: StaticAtomSet> PartialOrd for Atom<Static>
Source§impl<Static: StaticAtomSet> PrecomputedHash for Atom<Static>
impl<Static: StaticAtomSet> PrecomputedHash for Atom<Static>
Source§fn precomputed_hash(&self) -> u32
fn precomputed_hash(&self) -> u32
Return the precomputed hash for this item.