Trait compose_spec::AsShortIter

source ·
pub trait AsShortIter<'a> {
    type Iter: Iterator;

    // Required method
    fn as_short_iter(&'a self) -> Option<Self::Iter>;
}
Expand description

Trait similar to AsShort except it returns an Iterator instead of a reference.

Required Associated Types§

Required Methods§

source

fn as_short_iter(&'a self) -> Option<Self::Iter>

Returns an Iterator if the long syntax can be represented as the short syntax.

Implementations on Foreign Types§

source§

impl<'a> AsShortIter<'a> for IndexMap<Identifier, Option<Network>>

§

type Iter = Keys<'a, Identifier, Option<Network>>

source§

fn as_short_iter(&'a self) -> Option<Self::Iter>

source§

impl<'a> AsShortIter<'a> for IndexMap<Identifier, Dependency>

§

type Iter = Keys<'a, Identifier, Dependency>

source§

fn as_short_iter(&'a self) -> Option<Self::Iter>

source§

impl<'a, T> AsShortIter<'a> for &T
where T: AsShortIter<'a>,

§

type Iter = <T as AsShortIter<'a>>::Iter

source§

fn as_short_iter(&'a self) -> Option<Self::Iter>

Implementors§

source§

impl<'a, S, L> AsShortIter<'a> for ShortOrLong<S, L>
where S: 'a, &'a S: IntoIterator<Item = <L::Iter as Iterator>::Item>, L: AsShortIter<'a>,