pub struct Tag<K: ?Sized>(/* private fields */);Expand description
Pure phantom service identity (K is usually a ZST marker type).
Implementations§
Trait Implementations§
impl<K: Copy + ?Sized> Copy for Tag<K>
impl<K: ?Sized> Eq for Tag<K>
Auto Trait Implementations§
impl<K> Freeze for Tag<K>where
K: ?Sized,
impl<K> RefUnwindSafe for Tag<K>where
K: ?Sized,
impl<K> Send for Tag<K>where
K: ?Sized,
impl<K> Sync for Tag<K>where
K: ?Sized,
impl<K> Unpin for Tag<K>where
K: ?Sized,
impl<K> UnsafeUnpin for Tag<K>where
K: ?Sized,
impl<K> UnwindSafe for Tag<K>where
K: ?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§impl<T> EffectHash for T
impl<T> EffectHash for T
Source§fn effect_hash(&self) -> u64
fn effect_hash(&self) -> u64
Returns a
u64 hash of self using the default hasher (Effect.ts-style single-value hash).Source§impl<T> Equal for T
impl<T> Equal for T
Source§fn effect_equals(&self, other: &Self) -> bool
fn effect_equals(&self, other: &Self) -> bool
Returns whether
self and other are structurally equal (defaults to PartialEq::eq).