[−][src]Struct text_trees::FormatCharacters
Contains the set of characters, and counts, to use when line formatting.
Fields
down_facing_angle: char
This character is used to connect the root of the tree when line anchors are on the left.
ASCII value '+'
, box character value '┌'
.
down_facing_tee: char
This character is used to connect non-root parents in the tree when line anchors are on the left.
ASCII value ','
, box character value '┬'
.
vertical_line: char
This character is used as the vertical connector between parent and child nodes.
ASCII value '|'
, box character value '│'
.
horizontal_line: char
This character is used as the horizontal connector to node labels.
ASCII value '-'
, box character value '─'
.
horizontal_space: char
The character to use instead of horizontal_line
where lines are not present.
ASCII value ' '
, box character value ' '
.
horizontal_line_count: usize
The number of horizontal_line
, or horizontal_space
characters connecting lines to labels.
right_facing_tee: char
This character is used to connect non-terminal child nodes.
ASCII value '+'
, box character value '├'
.
right_facing_angle: char
This character is used to connect terminal child nodes.
ASCII value '\''
, box character value '└'
.
label_space_char: char
This character is used as the spacing between the lines of the tree and the labels of each node.
ASCII value ' '
, box character value ' '
.
label_space_count: usize
The number of label_space_char
characters between the lines of the tree and the labels of each node.
ASCII value ''
, box character value ''
.
Implementations
impl FormatCharacters
[src]
pub fn ascii() -> Self
[src]
The set of commonly used ASCII characters used for tree formatting.
pub fn box_chars() -> Self
[src]
The set of commonly used line drawing characters used for tree formatting.
Trait Implementations
impl Clone for FormatCharacters
[src]
fn clone(&self) -> FormatCharacters
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FormatCharacters
[src]
impl Default for FormatCharacters
[src]
Auto Trait Implementations
impl RefUnwindSafe for FormatCharacters
impl Send for FormatCharacters
impl Sync for FormatCharacters
impl Unpin for FormatCharacters
impl UnwindSafe for FormatCharacters
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>,