Enum cargo_rdme::utils::ItemOrOther
source · pub enum ItemOrOther<'a, T> {
Item(T),
Other(&'a str),
}Variants§
Trait Implementations§
source§impl<'a, T: Debug> Debug for ItemOrOther<'a, T>
impl<'a, T: Debug> Debug for ItemOrOther<'a, T>
source§impl<'a, T: PartialEq> PartialEq<ItemOrOther<'a, T>> for ItemOrOther<'a, T>
impl<'a, T: PartialEq> PartialEq<ItemOrOther<'a, T>> for ItemOrOther<'a, T>
source§fn eq(&self, other: &ItemOrOther<'a, T>) -> bool
fn eq(&self, other: &ItemOrOther<'a, T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a, T: Eq> Eq for ItemOrOther<'a, T>
impl<'a, T> StructuralEq for ItemOrOther<'a, T>
impl<'a, T> StructuralPartialEq for ItemOrOther<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for ItemOrOther<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for ItemOrOther<'a, T>where T: Send,
impl<'a, T> Sync for ItemOrOther<'a, T>where T: Sync,
impl<'a, T> Unpin for ItemOrOther<'a, T>where T: Unpin,
impl<'a, T> UnwindSafe for ItemOrOther<'a, T>where T: UnwindSafe,
Blanket Implementations§
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.