[−][src]Struct text_trees::TreeFormatting
This structure collects together all the formatting options that control how the tree is output.
Fields
prefix_str: Option<String>
A prefix string written before every line. While no validation is performed on this value, if newline (or other formatting) characters are included the tree is likely to appear disjointed.
orientation: TreeOrientation
The orientation to write the tree.
anchor: AnchorPosition
The line anchor position.
chars: FormatCharacters
The set of characters to use when line formatting.
Implementations
impl TreeFormatting
[src]
pub fn dir_tree(chars: FormatCharacters) -> Self
[src]
Construct the common options for a directory tree using the provided format characters.
pub fn dir_tree_with_prefix(chars: FormatCharacters, prefix_str: String) -> Self
[src]
Construct the common options for a directory tree using the provided format characters.
Additionally, the value for prefix_str
will be used for each output line.
pub fn dir_tree_left(chars: FormatCharacters) -> Self
[src]
Construct the common options for a directory tree, with lines anchored to the left, using the provided format characters.
pub fn dir_tree_left_with_prefix(
chars: FormatCharacters,
prefix_str: String
) -> Self
[src]
chars: FormatCharacters,
prefix_str: String
) -> Self
Construct the common options for a directory tree, with lines anchored to the left, using
the provided format characters. Additionally, the value for prefix_str
will be used for
each output line.
Trait Implementations
impl Clone for TreeFormatting
[src]
fn clone(&self) -> TreeFormatting
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TreeFormatting
[src]
impl Default for TreeFormatting
[src]
Auto Trait Implementations
impl RefUnwindSafe for TreeFormatting
impl Send for TreeFormatting
impl Sync for TreeFormatting
impl Unpin for TreeFormatting
impl UnwindSafe for TreeFormatting
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,