Struct syntax::symbol::InternedString [−][src]
pub struct InternedString { /* fields omitted */ }
Represents a string stored in the string interner
Methods
impl InternedString
[src]
impl InternedString
pub fn with<F, R>(self, f: F) -> R where
F: FnOnce(&str) -> R,
[src]
pub fn with<F, R>(self, f: F) -> R where
F: FnOnce(&str) -> R,
pub fn as_symbol(self) -> Symbol
[src]
pub fn as_symbol(self) -> Symbol
pub fn as_str(self) -> LocalInternedString
[src]
pub fn as_str(self) -> LocalInternedString
Trait Implementations
impl PartialOrd<InternedString> for InternedString
[src]
impl PartialOrd<InternedString> for InternedString
fn partial_cmp(&self, other: &InternedString) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &InternedString) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for InternedString
[src]
impl Hash for InternedString
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for InternedString
[src]
impl Display for InternedString
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Decodable for InternedString
[src]
impl Decodable for InternedString
impl Clone for InternedString
[src]
impl Clone for InternedString
fn clone(&self) -> InternedString
[src]
fn clone(&self) -> InternedString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for InternedString
[src]
impl Debug for InternedString
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for InternedString
[src]
impl Copy for InternedString
impl Ord for InternedString
[src]
impl Ord for InternedString
fn cmp(&self, other: &InternedString) -> Ordering
[src]
fn cmp(&self, other: &InternedString) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Eq for InternedString
[src]
impl Eq for InternedString
impl PartialEq<InternedString> for str
[src]
impl PartialEq<InternedString> for str
fn eq(&self, other: &InternedString) -> bool
[src]
fn eq(&self, other: &InternedString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<InternedString> for &'a String
[src]
impl<'a> PartialEq<InternedString> for &'a String
fn eq(&self, other: &InternedString) -> bool
[src]
fn eq(&self, other: &InternedString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<InternedString> for String
[src]
impl PartialEq<InternedString> for String
fn eq(&self, other: &InternedString) -> bool
[src]
fn eq(&self, other: &InternedString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<InternedString> for InternedString
[src]
impl PartialEq<InternedString> for InternedString
fn eq(&self, other: &InternedString) -> bool
[src]
fn eq(&self, other: &InternedString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<InternedString> for &'a str
[src]
impl<'a> PartialEq<InternedString> for &'a str
fn eq(&self, other: &InternedString) -> bool
[src]
fn eq(&self, other: &InternedString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<T> PartialEq<T> for InternedString where
T: Deref<Target = str>,
[src]
impl<T> PartialEq<T> for InternedString where
T: Deref<Target = str>,
fn eq(&self, other: &T) -> bool
[src]
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Encodable for InternedString
[src]
impl Encodable for InternedString
impl From<InternedString> for String
[src]
impl From<InternedString> for String
fn from(val: InternedString) -> String
[src]
fn from(val: InternedString) -> String
Performs the conversion.
Auto Trait Implementations
impl !Send for InternedString
impl !Send for InternedString
impl !Sync for InternedString
impl !Sync for InternedString