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§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)