pub fn contains(&self, value: &EntryData) -> bool
    where
        EntryData: PartialEq,
    {
        self.iter().any(|entry| entry == value)
    }
/// Returns whether or not the list contains the given value.
///
/// Complexity: O(n)
///
/// # Examples
///
/// ```
/// use dlv_list::VecList;
///
/// let mut list = VecList::new();
/// assert!(!list.contains(&0));
///
/// list.push_back(0);
/// assert!(list.contains(&0));
/// ```
Returns whether or not the list contains the given value.
Returns whether or not the list contains the given value .
pub fn contains(&self, value: &EntryData) -> bool
    where
        EntryData: PartialEq,
    {
        self.iter().any(|entry| entry == value)
    }
pub fn contains ( & self , value : & EntryData ) -> bool where EntryData : PartialEq , { self . iter ( ) . any ( | entry | entry == value ) }
Returns whether or not the list contains the given value.
Returns whether or not the list contains the given value .
&self
value
&EntryData
&self
value
&EntryData
examples
```
use dlv_list::VecList.

let mut list = VecList::new();
assert!(!list.contains(&0)).


` ` ` use dlv_list :: VecList . let mut list = VecList :: new () ; assert! ( !list . contains ( &0 )) .