pub struct PrettyDoc {
pub text: String,
pub width: usize,
pub indent: usize,
}Expand description
A simple algebraic document type for pretty printing.
Fields§
§text: StringThe flattened text representation.
width: usizeThe preferred line width.
indent: usizeThe indentation level.
Implementations§
Auto Trait Implementations§
impl Freeze for PrettyDoc
impl RefUnwindSafe for PrettyDoc
impl Send for PrettyDoc
impl Sync for PrettyDoc
impl Unpin for PrettyDoc
impl UnsafeUnpin for PrettyDoc
impl UnwindSafe for PrettyDoc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more