pub struct Interned<T>(usize, PhantomData<*const T>);
Tuple Fields§
§0: usize
§1: PhantomData<*const T>
Trait Implementations§
source§impl<T: Internable + Ord> Ord for Interned<T>
impl<T: Internable + Ord> Ord for Interned<T>
source§impl<'a, T> PartialEq<&'a Interned<T>> for Interned<T>
impl<'a, T> PartialEq<&'a Interned<T>> for Interned<T>
source§impl<'a> PartialEq<&'a str> for Interned<String>
impl<'a> PartialEq<&'a str> for Interned<String>
source§impl<'a, T> PartialEq<Interned<T>> for &'a Interned<T>
impl<'a, T> PartialEq<Interned<T>> for &'a Interned<T>
source§impl<T> PartialEq<Interned<T>> for Interned<T>
impl<T> PartialEq<Interned<T>> for Interned<T>
source§impl<T: Internable + PartialOrd> PartialOrd<Interned<T>> for Interned<T>
impl<T: Internable + PartialOrd> PartialOrd<Interned<T>> for Interned<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T> Copy for Interned<T>
impl<T> Eq for Interned<T>
impl<T> Send for Interned<T>
impl<T> Sync for Interned<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Interned<T>where T: RefUnwindSafe,
impl<T> Unpin for Interned<T>
impl<T> UnwindSafe for Interned<T>where T: RefUnwindSafe,
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> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes