/// Returns `true` if the `List` contains an element equal to the given value.
Returns `true` if the `List` contains an element equal to the given value.
Returns ` true ` if the ` List ` contains an element equal to the given value .
pub fn contains(self, value: &T) -> bool
    where
        T: PartialEq,
    {
        self.iter().any(|x| x == value)
    }
pub fn contains ( self , value : & T ) -> bool where T : PartialEq , { self . iter ( ) . any ( | x | x == value ) }
Returns `true` if the `List` contains an element equal to the given value.
Returns ` true ` if the ` List ` contains an element equal to the given value .
self
value
&T