pub type Symbol = Str;
Expand description
TODO
Aliased Type§
struct Symbol {
pub span: Span,
pub value: Atom,
pub raw: Option<Atom>,
}
Fields§
§span: Span
§value: Atom
§raw: Option<Atom>
Use None
value only for transformations to avoid recalculate escaped
characters in strings
Implementations
§impl Str
impl Str
pub fn is_empty(&self) -> bool
pub fn from_tpl_raw(tpl_raw: &str) -> Atom
Trait Implementations
§impl Archive for Str
impl Archive for Str
§const COPY_OPTIMIZATION: CopyOptimization<Str> = _
const COPY_OPTIMIZATION: CopyOptimization<Str> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize
. Read more§impl<'de> Deserialize<'de> for Str
impl<'de> Deserialize<'de> for Str
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Str, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Str, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<__D> Deserialize<Str, __D> for <Str as Archive>::Archivedwhere
__D: Fallible + ?Sized,
<__D as Fallible>::Error: Source,
impl<__D> Deserialize<Str, __D> for <Str as Archive>::Archivedwhere
__D: Fallible + ?Sized,
<__D as Fallible>::Error: Source,
§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<Str, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<Str, <__D as Fallible>::Error>
Deserializes using the given deserializer
§impl EqIgnoreSpan for Str
impl EqIgnoreSpan for Str
fn eq_ignore_span(&self, other: &Str) -> bool
§impl<__S> Serialize<__S> for Strwhere
__S: Fallible + Writer + Allocator + ?Sized,
<__S as Fallible>::Error: Source,
impl<__S> Serialize<__S> for Strwhere
__S: Fallible + Writer + Allocator + ?Sized,
<__S as Fallible>::Error: Source,
§impl Serialize for Str
impl Serialize for Str
§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