Enum calypso_base::symbol::PotentiallyInterned
source · Expand description
A string that is potentially interned.
Variants§
Implementations§
source§impl<'a> PotentiallyInterned<'a>
impl<'a> PotentiallyInterned<'a>
sourcepub fn potentially_intern(string: &'a str) -> Self
pub fn potentially_intern(string: &'a str) -> Self
Potentially intern a string, if it is shorter than 255 characters.
Trait Implementations§
source§impl<'a> AsRef<str> for PotentiallyInterned<'a>
impl<'a> AsRef<str> for PotentiallyInterned<'a>
source§impl<'a> Clone for PotentiallyInterned<'a>
impl<'a> Clone for PotentiallyInterned<'a>
source§fn clone(&self) -> PotentiallyInterned<'a>
fn clone(&self) -> PotentiallyInterned<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for PotentiallyInterned<'a>
impl<'a> Debug for PotentiallyInterned<'a>
source§impl<'a> Display for PotentiallyInterned<'a>
impl<'a> Display for PotentiallyInterned<'a>
source§impl<'a> PartialEq<PotentiallyInterned<'a>> for PotentiallyInterned<'a>
impl<'a> PartialEq<PotentiallyInterned<'a>> for PotentiallyInterned<'a>
source§fn eq(&self, other: &PotentiallyInterned<'a>) -> bool
fn eq(&self, other: &PotentiallyInterned<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.