Type Alias StaticString
pub type StaticString = Atom;
Available on crate feature
__base
only.Expand description
This should be used as a key for hash maps and hash sets.
This will be replaced with Atom in the future.
Aliased Type§
struct StaticString(/* private fields */);
Implementations
Trait Implementations
§impl Archive for Atom
impl Archive for Atom
NOT A PUBLIC API
§type Resolver = StringResolver
type Resolver = StringResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
§fn resolve(
&self,
resolver: <Atom as Archive>::Resolver,
out: Place<<Atom as Archive>::Archived>,
)
fn resolve( &self, resolver: <Atom as Archive>::Resolver, out: Place<<Atom as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
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 Atom
impl<'de> Deserialize<'de> for Atom
§fn deserialize<D>(
deserializer: D,
) -> Result<Atom, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Atom, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl EqIgnoreSpan for Atom
impl EqIgnoreSpan for Atom
fn eq_ignore_span(&self, r: &Atom) -> bool
§impl EsReserved for Atom
impl EsReserved for Atom
fn is_reserved(&self) -> bool
fn is_reserved_in_strict_mode(&self, is_module: bool) -> bool
fn is_reserved_in_strict_bind(&self) -> bool
fn is_reserved_in_es3(&self) -> bool
fn is_reserved_in_any(&self) -> bool
§impl<V> FoldWith<V> for Atom
impl<V> FoldWith<V> for Atom
§fn fold_with(self, visitor: &mut V) -> Atom
fn fold_with(self, visitor: &mut V) -> Atom
Calls Fold::fold_atom
with self
. (Extra impl)
§fn fold_children_with(self, visitor: &mut V) -> Atom
fn fold_children_with(self, visitor: &mut V) -> Atom
Visit children nodes of
self`` with
visitor`.§impl IdentLike for Atom
impl IdentLike for Atom
fn from_ident(i: &Ident) -> Atom
fn to_id(&self) -> (Atom, SyntaxContext)
fn into_id(self) -> (Atom, SyntaxContext)
§impl Ord for Atom
impl Ord for Atom
§impl PartialOrd for Atom
impl PartialOrd for Atom
§impl<S> Serialize<S> for Atomwhere
S: Fallible + Writer + ?Sized,
<S as Fallible>::Error: Source,
impl<S> Serialize<S> for Atomwhere
S: Fallible + Writer + ?Sized,
<S as Fallible>::Error: Source,
NOT A PUBLIC API
§impl Serialize for Atom
impl Serialize for Atom
§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
§impl<V> VisitMutWith<V> for Atom
impl<V> VisitMutWith<V> for Atom
§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls VisitMut::visit_mut_atom
with self
. (Extra impl)
§fn visit_mut_children_with(&mut self, visitor: &mut V)
fn visit_mut_children_with(&mut self, visitor: &mut V)
Visit children nodes of
self`` with
visitor`.§impl<V> VisitMutWith<V> for Atomwhere
V: VisitMut + ?Sized,
impl<V> VisitMutWith<V> for Atomwhere
V: VisitMut + ?Sized,
§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls [VisitMut::visit_mut_atom
] with self
. (Extra impl)
§fn visit_mut_children_with(&mut self, visitor: &mut V)
fn visit_mut_children_with(&mut self, visitor: &mut V)
Visit children nodes of
self`` with
visitor`.§impl<V> VisitWith<V> for Atom
impl<V> VisitWith<V> for Atom
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_atom
with self
. (Extra impl)
§fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of
self`` with
visitor`.§impl<V> VisitWith<V> for Atomwhere
V: Visit + ?Sized,
impl<V> VisitWith<V> for Atomwhere
V: Visit + ?Sized,
§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls [Visit::visit_atom
] with self
. (Extra impl)
§fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of
self`` with
visitor`.