Skip to main content

TemplateLineNames

Trait TemplateLineNames 

pub trait TemplateLineNames<'a, S>:
    Iterator<Item = Self::LineNameSet<'a>>
    + ExactSizeIterator
    + Clone
    + 'a
where S: CheapCloneStr,
{ type LineNameSet<'b>: Iterator<Item = &'b S> + ExactSizeIterator + Clone where Self: 'b; }
Expand description

A nested list of line names. This is effectively a generic representation of Vec<Vec<String>> that allows both the collection and string type to be customised.

Required Associated Types§

type LineNameSet<'b>: Iterator<Item = &'b S> + ExactSizeIterator + Clone where Self: 'b

A simple list line names. This is effectively a generic representation of VecString> that allows both the collection and string type to be customised.

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§

§

impl<'a, S> TemplateLineNames<'a, S> for Map<Iter<'a, Vec<S>>, fn(&Vec<S>) -> Iter<'_, S>>
where S: CheapCloneStr,

§

type LineNameSet<'b> = Iter<'b, S> where Map<Iter<'a, Vec<S>>, fn(&Vec<S>) -> Iter<'_, S>>: 'b

Implementors§