Skip to main content

Symbol

Type Alias Symbol 

Source
pub type Symbol = Interned<'static, str>;

Aliased Type§

#[repr(transparent)]
pub struct Symbol(pub &'static str, pub Private);

Tuple Fields§

§0: &'static str§1: Private

Trait Implementations§

Source§

impl Default for Symbol

Source§

fn default() -> Self

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

impl From<&str> for Symbol

Source§

fn from(value: &str) -> Self

Types which implement AsRef<str> will be stored in the global StringInterner