pub struct Symbol<'table> { /* private fields */ }Expand description
Like a &str, but with constant time equality comparison.
It is a distinct type from &str to avoid confusion where an interned string could be compared
to an uninterned string and give a confusing false negative.
Implementations§
Trait Implementations§
impl<'table> Copy for Symbol<'table>
impl<'table> Eq for Symbol<'table>
Auto Trait Implementations§
impl<'table> Freeze for Symbol<'table>
impl<'table> RefUnwindSafe for Symbol<'table>
impl<'table> !Send for Symbol<'table>
impl<'table> !Sync for Symbol<'table>
impl<'table> Unpin for Symbol<'table>
impl<'table> UnwindSafe for Symbol<'table>
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