Struct Descendants
pub struct Descendants<'a, T: 'a>(/* private field */);
An iterator of references to a given node and its descendants, in tree order.
Trait Implementations
impl<'a, T> Debug for Descendants<'a, RefCell<T>>
where
T: Debug + 'a,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a, T> Iterator for Descendants<'a, T>
type Item = &'a Node<'a, T>;fn next(&mut self) -> Option<&'a Node<'a, T>>
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Descendants<'a, T>
impl<'a, T> !Send for Descendants<'a, T>
impl<'a, T> !Sync for Descendants<'a, T>
impl<'a, T> !UnwindSafe for Descendants<'a, T>
impl<'a, T> Freeze for Descendants<'a, T>
where
Traverse<'a, T>: Freeze,
impl<'a, T> Unpin for Descendants<'a, T>
where
Traverse<'a, T>: Unpin,
impl<'a, T> UnsafeUnpin for Descendants<'a, T>
where
Traverse<'a, T>: UnsafeUnpin,
Blanket Implementations
impl<I> IntoIterator for Descendants<'a, T>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for Descendants<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Descendants<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Descendants<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Descendants<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Descendants<'a, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Descendants<'a, T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Descendants<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>