Type Alias texlang::token::CsNameInterner
source · pub type CsNameInterner = Interner<CsName>;
Expand description
String interner for control sequence names.
Aliased Type§
struct CsNameInterner { /* private fields */ }
Implementations
§impl<K, S> Interner<K, S>where
K: Key,
S: BuildHasher,
impl<K, S> Interner<K, S>where
K: Key,
S: BuildHasher,
pub fn get_or_intern(&mut self, s: &str) -> K
pub fn get_or_intern(&mut self, s: &str) -> K
Intern the provided string and return its key.
Trait Implementations
§impl<'de, K, S> Deserialize<'de> for Interner<K, S>where
K: Key,
S: Default + BuildHasher,
impl<'de, K, S> Deserialize<'de> for Interner<K, S>where
K: Key,
S: Default + BuildHasher,
§fn deserialize<D>(
deserializer: D,
) -> Result<Interner<K, S>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Interner<K, S>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<K, S> Serialize for Interner<K, S>
impl<K, S> Serialize for Interner<K, S>
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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