Struct fuchsia_inspect::reader::PartialNodeHierarchy
source · [−]pub struct PartialNodeHierarchy { /* private fields */ }
Expand description
A partial node hierarchy represents a node in an inspect tree without
the linked (lazy) nodes expanded.
Usually a client would prefer to use a DiagnosticsHierarchy
to get the full
inspect tree.
Implementations
sourceimpl PartialNodeHierarchy
impl PartialNodeHierarchy
sourcepub fn new(
name: impl Into<String>,
properties: Vec<Property>,
children: Vec<PartialNodeHierarchy>
) -> Self
pub fn new(
name: impl Into<String>,
properties: Vec<Property>,
children: Vec<PartialNodeHierarchy>
) -> Self
Creates an PartialNodeHierarchy
with the given name
, properties
and children
sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether the partial hierarchy is complete or not. A complete node hierarchy has all the links loaded into it.
Trait Implementations
sourceimpl Clone for PartialNodeHierarchy
impl Clone for PartialNodeHierarchy
sourcefn clone(&self) -> PartialNodeHierarchy
fn clone(&self) -> PartialNodeHierarchy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PartialNodeHierarchy
impl Debug for PartialNodeHierarchy
sourceimpl DiagnosticsHierarchyGetter<String> for PartialNodeHierarchy
impl DiagnosticsHierarchyGetter<String> for PartialNodeHierarchy
fn get_diagnostics_hierarchy(&self) -> Cow<'_, DiagnosticsHierarchy>
sourceimpl Into<DiagnosticsHierarchy<String>> for PartialNodeHierarchy
impl Into<DiagnosticsHierarchy<String>> for PartialNodeHierarchy
Transforms the partial hierarchy into a DiagnosticsHierarchy
. If the node hierarchy had
unexpanded links, those will appear as missing values.
sourcefn into(self) -> DiagnosticsHierarchy
fn into(self) -> DiagnosticsHierarchy
Converts this type into the (usually inferred) input type.
sourceimpl PartialEq<PartialNodeHierarchy> for PartialNodeHierarchy
impl PartialEq<PartialNodeHierarchy> for PartialNodeHierarchy
sourcefn eq(&self, other: &PartialNodeHierarchy) -> bool
fn eq(&self, other: &PartialNodeHierarchy) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PartialNodeHierarchy) -> bool
fn ne(&self, other: &PartialNodeHierarchy) -> bool
This method tests for !=
.
sourceimpl TryFrom<&Vmo> for PartialNodeHierarchy
impl TryFrom<&Vmo> for PartialNodeHierarchy
sourceimpl TryFrom<Snapshot> for PartialNodeHierarchy
impl TryFrom<Snapshot> for PartialNodeHierarchy
impl StructuralPartialEq for PartialNodeHierarchy
Auto Trait Implementations
impl RefUnwindSafe for PartialNodeHierarchy
impl Send for PartialNodeHierarchy
impl Sync for PartialNodeHierarchy
impl Unpin for PartialNodeHierarchy
impl UnwindSafe for PartialNodeHierarchy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<K, T> JsonGetter<K> for T where
K: Clone + AsRef<str>,
T: DiagnosticsHierarchyGetter<K>,
impl<K, T> JsonGetter<K> for T where
K: Clone + AsRef<str>,
T: DiagnosticsHierarchyGetter<K>,
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more