Trait macro_tools::orphan::IterTrait

source ·
pub trait IterTrait<'a, T>
where T: 'a, Self: _IterTrait<'a, T> + Clone,
{ }
Expand description

Trait that encapsulates a clonable iterator with specific characteristics, tailored for use with the syn crate.

The IterTrait trait is designed to represent iterators that may yield references to items ( &'a T ) within the syn crate. These iterators must also implement the ExactSizeIterator, DoubleEndedIterator, and Clone traits. This combination ensures that the iterator can:

  • Provide an exact size hint ( ExactSizeIterator ),
  • Be traversed from both ends ( DoubleEndedIterator ),
  • Be clonable ( Clone ).

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T, I> IterTrait<'a, T> for I
where T: 'a, Self: _IterTrait<'a, T> + Clone,