Skip to main content

IterablePath

Trait IterablePath 

Source
pub trait IterablePath:
    Clone
    + Send
    + Sync {
    // Required method
    fn iter_segments(
        &self,
    ) -> impl DoubleEndedIterator<Item = &BorrowedName> + Send;
}
Expand description

Trait implemented by path types that provides an API to iterate over path segments.

Required Methods§

Source

fn iter_segments(&self) -> impl DoubleEndedIterator<Item = &BorrowedName> + 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".

Implementors§