Struct astral_string::StringId
pub struct StringId(_);
Expand description
An opaque struct for fast comparison between strings.
StringId
represents a unique identifier to a string.
Example
use astral::string::StringId;
let id1 = StringId::new("foo", &string_subsystem);
let id2 = StringId::new("bar", &string_subsystem);
let id3 = StringId::new("foo", &string_subsystem);
assert_ne!(id1, id2);
assert_eq!(id1, id3);
Implementations
Trait Implementations
impl Copy for StringId
impl Eq for StringId
impl StructuralEq for StringId
impl StructuralPartialEq for StringId
Auto Trait Implementations
impl RefUnwindSafe for StringId
impl Send for StringId
impl Sync for StringId
impl Unpin for StringId
impl UnwindSafe for StringId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more