pub fn contains<Q: ?Sized>(&self, value: &Q) -> bool
    where
        T: Borrow<Q>,
        Q: PartialEq,
    {
        match *self {
            SingleOrMultiple::Single(ref single) => single.borrow() == value,
            SingleOrMultiple::Multiple(ref vector) => {
                vector.iter().map(Borrow::borrow).any(|v| v == value)
            }
        }
    }
/// Checks whether this enum, regardless of single or multiple value contains `value`.
Checks whether this enum, regardless of single or multiple value contains `value`.
Checks whether this enum regardless of single or multiple value contains ` value ` .
pub fn contains<Q: ?Sized>(&self, value: &Q) -> bool
    where
        T: Borrow<Q>,
        Q: PartialEq,
    {
        match *self {
            SingleOrMultiple::Single(ref single) => single.borrow() == value,
            SingleOrMultiple::Multiple(ref vector) => {
                vector.iter().map(Borrow::borrow).any(|v| v == value)
            }
        }
    }
pub fn contains < Q : ? Sized > ( & self , value : & Q ) -> bool where T : Borrow < Q > , Q : PartialEq , { match * self { SingleOrMultiple :: Single ( ref single ) => single . borrow ( ) == value , SingleOrMultiple :: Multiple ( ref vector ) => { vector . iter ( ) . map ( Borrow :: borrow ) . any ( | v | v == value ) } } }
Checks whether this enum, regardless of single or multiple value contains `value`.
Checks whether this enum regardless of single or multiple value contains ` value ` .
&self
value
&Q
&self
value
&Q