pub struct InternedString(/* private fields */);Implementations§
Source§impl InternedString
impl InternedString
pub fn from_static(ident: &'static str) -> Self
pub fn from_string(ident: String) -> Self
pub fn from_str(ident: &str) -> Self
pub fn new(key: usize) -> Self
pub fn get(self) -> Spur
pub fn try_get(ident: &str) -> Option<InternedString>
pub fn resolve(&self) -> &str
Trait Implementations§
Source§impl Clone for InternedString
impl Clone for InternedString
Source§fn clone(&self) -> InternedString
fn clone(&self) -> InternedString
Returns a duplicate 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 Debug for InternedString
impl Debug for InternedString
Source§impl<'de> Deserialize<'de> for InternedString
impl<'de> Deserialize<'de> for InternedString
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InternedString
impl Display for InternedString
Source§impl From<&str> for InternedString
impl From<&str> for InternedString
Source§impl From<CompactString> for InternedString
impl From<CompactString> for InternedString
Source§fn from(value: CompactString) -> Self
fn from(value: CompactString) -> Self
Converts to this type from the input type.
Source§impl From<Spur> for InternedString
impl From<Spur> for InternedString
Source§impl From<String> for InternedString
impl From<String> for InternedString
Source§impl Hash for InternedString
impl Hash for InternedString
Source§impl Ord for InternedString
impl Ord for InternedString
Source§fn cmp(&self, other: &InternedString) -> Ordering
fn cmp(&self, other: &InternedString) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InternedString
impl PartialEq for InternedString
Source§impl PartialOrd for InternedString
impl PartialOrd for InternedString
Source§impl Serialize for InternedString
impl Serialize for InternedString
Source§impl ToOwnedString<InternedString> for InternString
impl ToOwnedString<InternedString> for InternString
impl Copy for InternedString
impl Eq for InternedString
impl StructuralPartialEq for InternedString
Auto Trait Implementations§
impl Freeze for InternedString
impl RefUnwindSafe for InternedString
impl Send for InternedString
impl Sync for InternedString
impl Unpin for InternedString
impl UnsafeUnpin for InternedString
impl UnwindSafe for InternedString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more