pub struct SetId<T>(/* private fields */);Implementations§
Source§impl<T> SetId<T>
impl<T> SetId<T>
Sourcepub fn cast<U>(self) -> SetId<U>
pub fn cast<U>(self) -> SetId<U>
Cast to another type. Although this is safe, using the result is not necessarily safe.
pub fn into_raw(self) -> NonNull<c_void>
Sourcepub unsafe fn from_raw(raw: NonNull<c_void>) -> Self
pub unsafe fn from_raw(raw: NonNull<c_void>) -> Self
Re-creates a SetId from calling SetId::into_raw.
§Safety
The set it belongs to must still be alive, and the repr should be
unchanged since it was created by SetId::into_raw.
Trait Implementations§
impl<T> Copy for SetId<T>
impl<T: Eq> Eq for SetId<T>
impl<T> StructuralPartialEq for SetId<T>
Auto Trait Implementations§
impl<T> Freeze for SetId<T>
impl<T> RefUnwindSafe for SetId<T>where
T: RefUnwindSafe,
impl<T> !Send for SetId<T>
impl<T> !Sync for SetId<T>
impl<T> Unpin for SetId<T>
impl<T> UnwindSafe for SetId<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.