Struct syntax::symbol::InternedString [−][src]
pub struct InternedString { /* fields omitted */ }Represents a string stored in the string interner
Methods
impl InternedString[src]
impl InternedStringpub 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) -> Symbolpub fn as_str(self) -> LocalInternedString[src]
pub fn as_str(self) -> LocalInternedStringTrait Implementations
impl PartialOrd<InternedString> for InternedString[src]
impl PartialOrd<InternedString> for InternedStringfn 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) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis 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 InternedStringfn 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 Clone for InternedString[src]
impl Clone for InternedStringfn clone(&self) -> InternedString[src]
fn clone(&self) -> InternedStringReturns 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 Display for InternedString[src]
impl Display for InternedStringfn 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 InternedStringimpl Debug for InternedString[src]
impl Debug for InternedStringfn 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 InternedStringimpl Ord for InternedString[src]
impl Ord for InternedStringfn cmp(&self, other: &InternedString) -> Ordering[src]
fn cmp(&self, other: &InternedString) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Eq for InternedString[src]
impl Eq for InternedStringimpl PartialEq<InternedString> for String[src]
impl PartialEq<InternedString> for Stringfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<InternedString> for &'a str[src]
impl<'a> PartialEq<InternedString> for &'a strfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<InternedString> for &'a String[src]
impl<'a> PartialEq<InternedString> for &'a Stringfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis 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) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<InternedString> for InternedString[src]
impl PartialEq<InternedString> for InternedStringfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<InternedString> for str[src]
impl PartialEq<InternedString> for strfn eq(&self, other: &InternedString) -> bool[src]
fn eq(&self, other: &InternedString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Encodable for InternedString[src]
impl Encodable for InternedStringimpl From<InternedString> for String[src]
impl From<InternedString> for Stringfn from(val: InternedString) -> String[src]
fn from(val: InternedString) -> StringPerforms the conversion.
Auto Trait Implementations
impl !Send for InternedString
impl !Send for InternedStringimpl !Sync for InternedString
impl !Sync for InternedString