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
).
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.