pub struct StringIdentifier(/* private fields */);Expand description
An string identifier that is used to represent an interned string.
Implementations§
Source§impl StringIdentifier
impl StringIdentifier
Sourcepub const fn new(val: NonZeroUsize) -> Self
pub const fn new(val: NonZeroUsize) -> Self
Sourcepub const fn is_same_as(&self, other: &Self) -> bool
pub const fn is_same_as(&self, other: &Self) -> bool
Returns true if the string identifier is the same as the other.
Trait Implementations§
Source§impl Clone for StringIdentifier
impl Clone for StringIdentifier
Source§fn clone(&self) -> StringIdentifier
fn clone(&self) -> StringIdentifier
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 StringIdentifier
impl Debug for StringIdentifier
Source§impl<'de> Deserialize<'de> for StringIdentifier
impl<'de> Deserialize<'de> for StringIdentifier
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 StringIdentifier
impl Display for StringIdentifier
Source§impl Hash for StringIdentifier
impl Hash for StringIdentifier
Source§impl Key for StringIdentifier
impl Key for StringIdentifier
Source§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns the
usize that represents the current keySource§fn try_from_usize(int: usize) -> Option<Self>
fn try_from_usize(int: usize) -> Option<Self>
Attempts to create a key from a
usize, returning None if it failsSource§impl Ord for StringIdentifier
impl Ord for StringIdentifier
Source§fn cmp(&self, other: &StringIdentifier) -> Ordering
fn cmp(&self, other: &StringIdentifier) -> 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 StringIdentifier
impl PartialEq for StringIdentifier
Source§impl PartialOrd for StringIdentifier
impl PartialOrd for StringIdentifier
Source§impl Serialize for StringIdentifier
impl Serialize for StringIdentifier
impl Copy for StringIdentifier
impl Eq for StringIdentifier
impl StructuralPartialEq for StringIdentifier
Auto Trait Implementations§
impl Freeze for StringIdentifier
impl RefUnwindSafe for StringIdentifier
impl Send for StringIdentifier
impl Sync for StringIdentifier
impl Unpin for StringIdentifier
impl UnwindSafe for StringIdentifier
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