pub struct ReformatOptions {
pub space_before_op: bool,
pub space_after_op: bool,
pub space_after_comma: bool,
pub no_space_before_close: bool,
}Expand description
Options for token stream reformatting.
Fields§
§space_before_op: boolInsert a space before operators.
space_after_op: boolInsert a space after operators.
space_after_comma: boolInsert a space after commas.
no_space_before_close: boolRemove spaces before closing brackets.
Trait Implementations§
Source§impl Clone for ReformatOptions
impl Clone for ReformatOptions
Source§fn clone(&self) -> ReformatOptions
fn clone(&self) -> ReformatOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReformatOptions
impl Debug for ReformatOptions
Auto Trait Implementations§
impl Freeze for ReformatOptions
impl RefUnwindSafe for ReformatOptions
impl Send for ReformatOptions
impl Sync for ReformatOptions
impl Unpin for ReformatOptions
impl UnsafeUnpin for ReformatOptions
impl UnwindSafe for ReformatOptions
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