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 for ItemOrOther<'a, T>
impl<'a, T: PartialEq> PartialEq 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> 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<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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.