Struct parallel_disk_usage::visualizer::tree::TreeSkeletalComponent
source · pub struct TreeSkeletalComponent {
pub child_position: ChildPosition,
pub direction: Direction,
pub parenthood: Parenthood,
}
Expand description
Determine 3 characters to use as skeletal component that connect a node to the rest of the tree.
Fields§
§child_position: ChildPosition
Whether the node is the last child amongst its parent’s children
.
direction: Direction
The direction of the visualization of the tree.
parenthood: Parenthood
Whether the node has children.
Implementations§
source§impl TreeSkeletalComponent
impl TreeSkeletalComponent
sourcepub const fn visualize(self) -> TreeSkeletalComponentVisualization
pub const fn visualize(self) -> TreeSkeletalComponentVisualization
Determine 3 characters to use as skeletal component that connect a node to the rest of the tree.
Trait Implementations§
source§impl Clone for TreeSkeletalComponent
impl Clone for TreeSkeletalComponent
source§fn clone(&self) -> TreeSkeletalComponent
fn clone(&self) -> TreeSkeletalComponent
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 TreeSkeletalComponent
impl Debug for TreeSkeletalComponent
source§impl Display for TreeSkeletalComponent
impl Display for TreeSkeletalComponent
source§impl PartialEq for TreeSkeletalComponent
impl PartialEq for TreeSkeletalComponent
source§fn eq(&self, other: &TreeSkeletalComponent) -> bool
fn eq(&self, other: &TreeSkeletalComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TreeSkeletalComponent
impl Eq for TreeSkeletalComponent
impl StructuralPartialEq for TreeSkeletalComponent
Auto Trait Implementations§
impl Freeze for TreeSkeletalComponent
impl RefUnwindSafe for TreeSkeletalComponent
impl Send for TreeSkeletalComponent
impl Sync for TreeSkeletalComponent
impl Unpin for TreeSkeletalComponent
impl UnwindSafe for TreeSkeletalComponent
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<X> Pipe for X
impl<X> Pipe for X
source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read moresource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read moresource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Target = Param>
. Read moresource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait [DerefMut<Target = Param>
]. Read moresource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Borrow<Param>
. Read moresource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more