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§
source§impl 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§
source§impl Clone for PartialNodeHierarchy
impl Clone for PartialNodeHierarchy
source§fn clone(&self) -> PartialNodeHierarchy
fn clone(&self) -> PartialNodeHierarchy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PartialNodeHierarchy
impl Debug for PartialNodeHierarchy
source§impl DiagnosticsHierarchyGetter<String> for PartialNodeHierarchy
impl DiagnosticsHierarchyGetter<String> for PartialNodeHierarchy
fn get_diagnostics_hierarchy(&self) -> Cow<'_, DiagnosticsHierarchy>
source§impl 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.
source§fn into(self) -> DiagnosticsHierarchy
fn into(self) -> DiagnosticsHierarchy
Converts this type into the (usually inferred) input type.
source§impl PartialEq<PartialNodeHierarchy> for PartialNodeHierarchy
impl PartialEq<PartialNodeHierarchy> for PartialNodeHierarchy
source§fn 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 ==
.