pub struct BranchNode {
pub id: String,
pub parent: Option<usize>,
pub children: Vec<usize>,
pub label: String,
}Expand description
One node of a BranchTree, index-aligned with the entry log.
Fields§
§id: StringId of the entry this node represents.
parent: Option<usize>Index of the parent node, or None for the root.
children: Vec<usize>Indices of child nodes, in log order.
label: StringA short human label — the first line of a message, or [kind] for a
custom entry.
Trait Implementations§
Source§impl Clone for BranchNode
impl Clone for BranchNode
Source§fn clone(&self) -> BranchNode
fn clone(&self) -> BranchNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BranchNode
impl RefUnwindSafe for BranchNode
impl Send for BranchNode
impl Sync for BranchNode
impl Unpin for BranchNode
impl UnsafeUnpin for BranchNode
impl UnwindSafe for BranchNode
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