Struct rosary::tree_format::Indenter [−][src]
Implementations
impl Indenter
[src]
An object used by the TreeFormat to control and track formatting settings.
pub fn next(&self) -> Indenter
[src]
pub fn header_len(&self) -> usize
[src]
How long the header of a line should be for this indenter.
pub fn line_header(&self, arms_to_continue: &Vec<bool>) -> String
[src]
Generate the text of the header for the line.
pub fn pad_string(&self, continue_arms: &Vec<bool>, text: &String) -> String
[src]
Pads a string with the header, toggling branches based on the arms outside of the current layer.
pub fn pad_tree(&self, tree: &RoseTree<String>) -> RoseTree<String>
[src]
Pads every string in a RoseTree, producing a new, padded RoseTree.
Trait Implementations
impl Clone for Indenter
[src]
impl Copy for Indenter
[src]
impl Debug for Indenter
[src]
impl Default for Indenter
[src]
Very convenient, I’m not copy-pasting the fancy characters every single time.
Auto Trait Implementations
impl RefUnwindSafe for Indenter
impl Send for Indenter
impl Sync for Indenter
impl Unpin for Indenter
impl UnwindSafe for Indenter
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,