Struct Ancestors
struct Ancestors<'a> { ... }
An iterator over Path and its ancestors.
This struct is created by the ancestors method on Path.
See its documentation for more.
Examples
use Path;
let path = new;
for ancestor in path.ancestors
Implementations
impl FusedIterator for Ancestors<'_>
impl<'a> Clone for Ancestors<'a>
fn clone(self: &Self) -> Ancestors<'a>
impl<'a> Copy for Ancestors<'a>
impl<'a> Debug for Ancestors<'a>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<'a> Freeze for Ancestors<'a>
impl<'a> Iterator for Ancestors<'a>
fn next(self: &mut Self) -> Option<<Self as >::Item>
impl<'a> RefUnwindSafe for Ancestors<'a>
impl<'a> Send for Ancestors<'a>
impl<'a> Sync for Ancestors<'a>
impl<'a> Unpin for Ancestors<'a>
impl<'a> UnwindSafe for Ancestors<'a>
impl<I> IntoIterator for Ancestors<'a>
fn into_iter(self: Self) -> I
impl<T> Any for Ancestors<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Ancestors<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Ancestors<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Ancestors<'a>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Ancestors<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Ancestors<'a>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Ancestors<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Ancestors<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Ancestors<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>