pub trait IterablePath:
Clone
+ Send
+ Sync {
// Required method
fn iter_segments(&self) -> impl DoubleEndedIterator<Item = &Name> + Send;
}
Expand description
Trait implemented by path types that provides an API to iterate over path segments.
Required Methods§
Sourcefn iter_segments(&self) -> impl DoubleEndedIterator<Item = &Name> + Send
fn iter_segments(&self) -> impl DoubleEndedIterator<Item = &Name> + Send
Returns a double-sided iterator over the segments in this path.
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.