Struct zng_view_api::access::AccessNodeRef
source · pub struct AccessNodeRef<'a> { /* private fields */ }
Expand description
Reference an access node in a tree.
Implementations§
source§impl<'a> AccessNodeRef<'a>
impl<'a> AccessNodeRef<'a>
sourcepub fn self_and_descendants(
&self,
) -> impl ExactSizeIterator<Item = AccessNodeRef<'_>>
pub fn self_and_descendants( &self, ) -> impl ExactSizeIterator<Item = AccessNodeRef<'_>>
Iterate over self
and all descendant nodes.
sourcepub fn descendants(&self) -> impl ExactSizeIterator<Item = AccessNodeRef<'_>>
pub fn descendants(&self) -> impl ExactSizeIterator<Item = AccessNodeRef<'_>>
Iterate over all descendant nodes.
sourcepub fn children(&self) -> impl ExactSizeIterator<Item = AccessNodeRef<'_>>
pub fn children(&self) -> impl ExactSizeIterator<Item = AccessNodeRef<'_>>
Iterate over children nodes.
Methods from Deref<Target = AccessNode>§
sourcepub fn children_count(&self) -> usize
pub fn children_count(&self) -> usize
Total count of children.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AccessNodeRef<'a>
impl<'a> RefUnwindSafe for AccessNodeRef<'a>
impl<'a> Send for AccessNodeRef<'a>
impl<'a> Sync for AccessNodeRef<'a>
impl<'a> Unpin for AccessNodeRef<'a>
impl<'a> UnwindSafe for AccessNodeRef<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more