pub fn contains<Q>(&self, element: &Q) -> bool
    where
        A::Item: Borrow<Q>,
        Q: Ord + ?Sized,
    {
        self.find(element).is_ok()
    }
/// Returns `true` if the set contains an element.
///
/// The value may be any borrowed form of the set's element type,
/// but the ordering on the borrowed form *must* match the
/// ordering on the element type.
///
/// # Examples
///
/// ```
/// use small_ord_set::SmallOrdSet;
///
/// let set = SmallOrdSet::from_buf([1, 2, 3]);
/// assert_eq!(set.contains(&1), true);
/// assert_eq!(set.contains(&4), false);
/// ```
Returns `true` if the set contains an element.
The value may be any borrowed form of the set's element type,
but the ordering on the borrowed form *must* match the
ordering on the element type.
Returns ` true ` if the set contains an element . The value may be any borrowed form of the set ' s element type but the ordering on the borrowed form * must * match the ordering on the element type .
pub fn contains<Q>(&self, element: &Q) -> bool
    where
        A::Item: Borrow<Q>,
        Q: Ord + ?Sized,
    {
        self.find(element).is_ok()
    }
pub fn contains < Q > ( & self , element : & Q ) -> bool where A :: Item : Borrow < Q > , Q : Ord + ? Sized , { self . find ( element ) . is_ok ( ) }
Returns `true` if the set contains an element.
Returns ` true ` if the set contains an element .
&self
element
&Q
&self
element
&Q
examples
```
use small_ord_set::SmallOrdSet.


` ` ` use small_ord_set :: SmallOrdSet .