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 From<PartialNodeHierarchy> for DiagnosticsHierarchy
impl From<PartialNodeHierarchy> for DiagnosticsHierarchy
Transforms the partial hierarchy into a DiagnosticsHierarchy
. If the node hierarchy had
unexpanded links, those will appear as missing values.
source§fn from(partial: PartialNodeHierarchy) -> DiagnosticsHierarchy
fn from(partial: PartialNodeHierarchy) -> DiagnosticsHierarchy
Converts to this type from the input type.
source§impl PartialEq for PartialNodeHierarchy
impl PartialEq 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 ==
.source§impl TryFrom<&Vmo> for PartialNodeHierarchy
impl TryFrom<&Vmo> for PartialNodeHierarchy
source§impl TryFrom<Snapshot> for PartialNodeHierarchy
impl TryFrom<Snapshot> for PartialNodeHierarchy
impl StructuralPartialEq for PartialNodeHierarchy
Auto Trait Implementations§
impl Freeze for PartialNodeHierarchy
impl RefUnwindSafe for PartialNodeHierarchy
impl Send for PartialNodeHierarchy
impl Sync for PartialNodeHierarchy
impl Unpin for PartialNodeHierarchy
impl UnwindSafe for PartialNodeHierarchy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)