pub struct Formatter { /* private fields */ }Expand description
Main formatter struct
Implementations§
Source§impl Formatter
impl Formatter
Sourcepub fn new(line_width: usize) -> Self
pub fn new(line_width: usize) -> Self
Create a new formatter with the given line width and wrap mode
Sourcepub fn with_wrap_mode(line_width: usize, wrap_mode: WrapMode) -> Self
pub fn with_wrap_mode(line_width: usize, wrap_mode: WrapMode) -> Self
Create a new formatter with the given line width and wrap mode
Sourcepub fn with_options(
line_width: usize,
wrap_mode: WrapMode,
ordered_list_mode: OrderedListMode,
) -> Self
pub fn with_options( line_width: usize, wrap_mode: WrapMode, ordered_list_mode: OrderedListMode, ) -> Self
Create a new formatter with all options
Auto Trait Implementations§
impl Freeze for Formatter
impl RefUnwindSafe for Formatter
impl Send for Formatter
impl Sync for Formatter
impl Unpin for Formatter
impl UnwindSafe for Formatter
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