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 ==.