Struct prose::reformat::FormatOpts
source · pub struct FormatOpts {
pub max_length: usize,
pub tab_width: usize,
pub last_line: bool,
pub reduce_jaggedness: bool,
pub format_mode: FormatMode,
}
Fields§
§max_length: usize
§tab_width: usize
§last_line: bool
§reduce_jaggedness: bool
§format_mode: FormatMode
Implementations§
source§impl FormatOpts
impl FormatOpts
pub fn with_max_length(max_length: usize) -> Self
pub fn new( max_length: usize, last_line: bool, reduce_jaggedness: bool, tab_width: usize, format_mode: FormatMode ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormatOpts
impl RefUnwindSafe for FormatOpts
impl Send for FormatOpts
impl Sync for FormatOpts
impl Unpin for FormatOpts
impl UnwindSafe for FormatOpts
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more