pub struct Interned<T: Internable + ?Sized> {
pub(crate) arc: Arc<T>,
}
Fields§
§arc: Arc<T>
Implementations§
Source§impl<T: Internable + ?Sized> Interned<T>
impl<T: Internable + ?Sized> Interned<T>
Trait Implementations§
Source§impl<'a, T> IntoIterator for &'a Interned<[T]>where
[T]: Internable,
impl<'a, T> IntoIterator for &'a Interned<[T]>where
[T]: Internable,
Source§impl<T: Ord + Internable> Ord for Interned<T>
impl<T: Ord + Internable> Ord for Interned<T>
Source§impl<T: Internable> PartialEq for Interned<T>
impl<T: Internable> PartialEq for Interned<T>
Compares interned Ref
s using pointer equality.
Source§impl<T: PartialOrd + Internable> PartialOrd for Interned<T>
impl<T: PartialOrd + Internable> PartialOrd for Interned<T>
impl<T> Eq for Interned<[T]>where
[T]: Internable,
impl<T: Internable> Eq for Interned<T>
Auto Trait Implementations§
impl<T> Freeze for Interned<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Interned<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Interned<T>
impl<T> Sync for Interned<T>
impl<T> Unpin for Interned<T>where
T: ?Sized,
impl<T> UnwindSafe for Interned<T>where
T: RefUnwindSafe + ?Sized,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more