[][src]Trait creator_simctl::DeviceQuery

pub trait DeviceQuery<'a>: Iterator<Item = &'a Device> {
    pub fn available(self) -> Available<'a, Self>;
pub fn by_name<'b>(self, name: &'b str) -> ByName<'a, 'b, Self>; }

Trait that makes it easy to filter an iterator over devices by availability or name.

Required methods

pub fn available(self) -> Available<'a, Self>[src]

Filters this iterator down to only available devices.

pub fn by_name<'b>(self, name: &'b str) -> ByName<'a, 'b, Self>[src]

Filters this iterator down to only devices with a matching name. Note that names are not necessarily unique. Trivially, they can be shared among several devices of the same type but with different runtimes (e.g. iOS 11.0 and iOS 12.0).

Loading content...

Implementors

impl<'a, I> DeviceQuery<'a> for I where
    I: Iterator<Item = &'a Device>, 
[src]

Loading content...