pub enum JoinStyle {
NoChange,
OneSpace,
NewSpace,
}
Expand description
Specify how to join lines together.
Variants§
NoChange
Leave whitespace around the join point as-is.
OneSpace
Replace whitespace around the join point with a single space.
NewSpace
Always insert a new space at the join point, regardless of whether there’s already whitespace there.
Trait Implementations§
source§impl PartialEq for JoinStyle
impl PartialEq for JoinStyle
impl Copy for JoinStyle
impl Eq for JoinStyle
impl StructuralPartialEq for JoinStyle
Auto Trait Implementations§
impl Freeze for JoinStyle
impl RefUnwindSafe for JoinStyle
impl Send for JoinStyle
impl Sync for JoinStyle
impl Unpin for JoinStyle
impl UnwindSafe for JoinStyle
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