Struct internment::ArenaIntern
source · [−]pub struct ArenaIntern<'a, T: ?Sized> { /* private fields */ }
This is supported on crate feature
arena
only.Expand description
An interned object reference with the data stored in an Arena<T>
.
Trait Implementations
sourceimpl<'a, T: ?Sized> AsRef<T> for ArenaIntern<'a, T>
impl<'a, T: ?Sized> AsRef<T> for ArenaIntern<'a, T>
sourceimpl<'a, T> Clone for ArenaIntern<'a, T>
impl<'a, T> Clone for ArenaIntern<'a, T>
sourceimpl<'a, T: Debug + ?Sized> Debug for ArenaIntern<'a, T>
impl<'a, T: Debug + ?Sized> Debug for ArenaIntern<'a, T>
sourceimpl<'a, T: ?Sized> Deref for ArenaIntern<'a, T>
impl<'a, T: ?Sized> Deref for ArenaIntern<'a, T>
sourceimpl<'a, T: Display + ?Sized> Display for ArenaIntern<'a, T>
impl<'a, T: Display + ?Sized> Display for ArenaIntern<'a, T>
sourceimpl<'a, T: ?Sized> Hash for ArenaIntern<'a, T>
impl<'a, T: ?Sized> Hash for ArenaIntern<'a, T>
The hash implementation returns the hash of the pointer value, not the hash of the value pointed to. This should be irrelevant, since there is a unique pointer for every value, but it is observable, since you could compare the hash of the pointer with hash of the data itself.
sourceimpl<'a, T: ?Sized> PartialEq<ArenaIntern<'a, T>> for ArenaIntern<'a, T>
impl<'a, T: ?Sized> PartialEq<ArenaIntern<'a, T>> for ArenaIntern<'a, T>
impl<'a, T> Copy for ArenaIntern<'a, T>
impl<'a, T: ?Sized> Eq for ArenaIntern<'a, T>
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for ArenaIntern<'a, T> where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for ArenaIntern<'a, T> where
T: Sync,
impl<'a, T: ?Sized> Sync for ArenaIntern<'a, T> where
T: Sync,
impl<'a, T: ?Sized> Unpin for ArenaIntern<'a, T>
impl<'a, T: ?Sized> UnwindSafe for ArenaIntern<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more