Query

Trait Query 

Source
pub trait Query<T: FlagsMarker> {
    type Iter<'t>: Iterator<Item = &'t str>
       where Self: 't;

    // Required method
    fn items<'t>(&'t self) -> Self::Iter<'t>;
}
Expand description

Items that can be used in Flags::contains()

§Warning

Although a few string types are supported, their usage is not encouraged, since we do not perform case conversion in contains.

The user should take care to proivde only flatlowercase strings.

Required Associated Types§

Source

type Iter<'t>: Iterator<Item = &'t str> where Self: 't

Required Methods§

Source

fn items<'t>(&'t self) -> Self::Iter<'t>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, 'b, T: FlagsMarker> Query<T> for &'b Cow<'a, str>

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<'a, T: FlagsMarker + PartialEq> Query<T> for &'a [T]

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, T>> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<'a, T: FlagsMarker + PartialEq> Query<T> for &'a Vec<T>

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, T>> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<'a, T: FlagsMarker> Query<T> for Cow<'a, str>

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker + PartialEq> Query<T> for &[&str]

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, &'t str>> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker + PartialEq> Query<T> for Vec<T>

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, T>> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for &&&T

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for &&str

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for &&T

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for &str

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for &String

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for &EcoString

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for &T

Source§

type Iter<'t> = Once<&'t str> where Self: 't

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for str

Source§

type Iter<'t> = Once<&'t str>

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for String

Source§

type Iter<'t> = Once<&'t str>

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Source§

impl<T: FlagsMarker> Query<T> for EcoString

Source§

type Iter<'t> = Once<&'t str>

Source§

fn items<'t>(&'t self) -> Self::Iter<'t>

Implementors§

Source§

impl<T: FlagsMarker + PartialEq> Query<T> for &&&Flags<T>

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, T>> where Self: 't

Source§

impl<T: FlagsMarker + PartialEq> Query<T> for &&Flags<T>

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, T>> where Self: 't

Source§

impl<T: FlagsMarker + PartialEq> Query<T> for &Flags<T>

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, T>> where Self: 't

Source§

impl<T: FlagsMarker + PartialEq> Query<T> for Flags<T>

Source§

type Iter<'t> = AsRefStrIter<'t, Iter<'t, T>> where T: 't

Source§

impl<T: FlagsMarker> Query<T> for T

Source§

type Iter<'t> = Once<&'t str> where Self: 't