Skip to main content

Set

Trait Set 

Source
pub trait Set<T> {
    // Required method
    fn contains(&self, elem: &T) -> bool;

    // Provided method
    fn to_str(&self) -> &str { ... }
}
Expand description

Set relationship.

Required Methods§

Source

fn contains(&self, elem: &T) -> bool

Whether a set contains an element or not.

Provided Methods§

Source

fn to_str(&self) -> &str

Convert to text for display.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Set<char> for str

Source§

fn contains(&self, elem: &char) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 0]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 1]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 2]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 3]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 4]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 5]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 6]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 7]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 8]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 9]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 10]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 11]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 12]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 13]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 14]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 15]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 16]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 17]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 18]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 19]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 20]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 21]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 22]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 23]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 24]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 25]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 26]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 27]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 28]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 29]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 30]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 31]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 32]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 33]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 34]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 35]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 36]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 37]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 38]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 39]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 40]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 41]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 42]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 43]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 44]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 45]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 46]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 47]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 48]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 49]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 50]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 51]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 52]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 53]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 54]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 55]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 56]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 57]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 58]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 59]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 60]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 61]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 62]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 63]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl Set<u8> for [u8; 64]

Source§

fn contains(&self, elem: &u8) -> bool

Source§

fn to_str(&self) -> &str

Source§

impl<T: PartialEq> Set<T> for [T]

Source§

fn contains(&self, elem: &T) -> bool

Source§

impl<T: PartialOrd + Copy> Set<T> for Range<T>

Source§

fn contains(&self, elem: &T) -> bool

Source§

impl<T: PartialOrd + Copy> Set<T> for RangeFrom<T>

Source§

fn contains(&self, elem: &T) -> bool

Source§

impl<T: PartialOrd + Copy> Set<T> for RangeTo<T>

Source§

fn contains(&self, elem: &T) -> bool

Source§

impl<T> Set<T> for RangeFull

Source§

fn contains(&self, _: &T) -> bool

Source§

fn to_str(&self) -> &str

Implementors§