[][src]Trait frame_support::traits::Contains

pub trait Contains<T> {
    fn contains(t: &T) -> bool;
}

A trait for querying whether a type can be said to statically "contain" a value. Similar in nature to Get, except it is designed to be lazy rather than active (you can't ask it to enumerate all values that it contains) and work for multiple values rather than just one.

Required methods

fn contains(t: &T) -> bool

Return true if this "contains" the given value t.

Loading content...

Implementors

impl<V: PartialEq, T: Get<V>> Contains<V> for T[src]

Loading content...