Struct parallel_disk_usage::visualizer::tree::TreeHorizontalSlice [−][src]
pub struct TreeHorizontalSlice<Name: Width> { /* fields omitted */ }
Expand description
Horizontal slice of a tree of the height of exactly 1 line of text.
Implementations
Truncate the name to fit specified max_width
.
- If
max_width
is already sufficient, do nothing other than returnOk(())
. - If
max_width
is insufficient even for the required part, returnErr(N)
whereN
is the required width. - If
max_width
is sufficient for the required part but insufficient for the name, truncate and add"..."
to the name.
Trait Implementations
impl<Name: PartialEq + Width> PartialEq<TreeHorizontalSlice<Name>> for TreeHorizontalSlice<Name>
[src]
impl<Name: PartialEq + Width> PartialEq<TreeHorizontalSlice<Name>> for TreeHorizontalSlice<Name>
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<Name> RefUnwindSafe for TreeHorizontalSlice<Name> where
Name: RefUnwindSafe,
impl<Name> Send for TreeHorizontalSlice<Name> where
Name: Send,
impl<Name> Sync for TreeHorizontalSlice<Name> where
Name: Sync,
impl<Name> Unpin for TreeHorizontalSlice<Name> where
Name: Unpin,
impl<Name> UnwindSafe for TreeHorizontalSlice<Name> where
Name: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Apply f
to self
. Read more
Apply f
to &self
. Read more
Apply f
to &mut self
. Read more
Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read more
Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read more
Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Param>
. Read more
Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait DerefMut<Param>
. Read more
Apply f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Param>
. Read more
Apply f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait DerefMut<Param>
. Read more