pub enum PinKind<C: Borrow<Cid>> {
IndirectFrom(C),
Direct,
Recursive(u64),
RecursiveIntention,
}
Expand description
PinKind
is more specific pin description for writing purposes. Implements
PartialEq<&PinMode>
. Generic over Borrow<Cid>
to allow storing both reference and owned
value of Cid.
Variants§
Trait Implementations§
source§impl<C: PartialEq + Borrow<Cid>> PartialEq<PinKind<C>> for PinKind<C>
impl<C: PartialEq + Borrow<Cid>> PartialEq<PinKind<C>> for PinKind<C>
source§impl<B: Borrow<Cid>> PartialEq<PinMode> for PinKind<B>
impl<B: Borrow<Cid>> PartialEq<PinMode> for PinKind<B>
impl<C: Eq + Borrow<Cid>> Eq for PinKind<C>
impl<C: Borrow<Cid>> StructuralEq for PinKind<C>
impl<C: Borrow<Cid>> StructuralPartialEq for PinKind<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for PinKind<C>where C: RefUnwindSafe,
impl<C> Send for PinKind<C>where C: Send,
impl<C> Sync for PinKind<C>where C: Sync,
impl<C> Unpin for PinKind<C>where C: Unpin,
impl<C> UnwindSafe for PinKind<C>where C: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.