pub struct Display<'a, T> { /* private fields */ }
Expand description
Configurable display formatting of structures.
Examples
let history = History::default();
println!(
"{}",
history.display().graph(true).colored(true).ligatures(true)
);
Implementations
sourceimpl<T> Display<'_, T>
impl<T> Display<'_, T>
sourcepub fn current(&mut self, on: bool) -> &mut Self
pub fn current(&mut self, on: bool) -> &mut Self
Show the current position in the output (on by default).
sourcepub fn ligatures(&mut self, on: bool) -> &mut Self
pub fn ligatures(&mut self, on: bool) -> &mut Self
Use ligature (unicode) in the output (off by default).
The ligatures only works as expected with monospaced fonts.
Trait Implementations
impl<'a, T: Copy> Copy for Display<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Display<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Display<'a, T>where
T: Sync,
impl<'a, T> Sync for Display<'a, T>where
T: Sync,
impl<'a, T> Unpin for Display<'a, T>
impl<'a, T> UnwindSafe for Display<'a, T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more