zooming
This commit is contained in:
parent
bb8f6bedf6
commit
4a6c1020f4
10 changed files with 113 additions and 34 deletions
|
|
@ -46,9 +46,13 @@ pub struct Span<'a> {
|
|||
}
|
||||
|
||||
/// Configuration options for [`into_spans`]
|
||||
#[derive(Default)]
|
||||
#[non_exhaustive]
|
||||
pub struct Config {
|
||||
/// Turn sequences of more than 1 space into exactly 1 space.
|
||||
pub collapse_space: bool,
|
||||
/// Pretty print: wrap at braces etc
|
||||
pub pretty_print: bool,
|
||||
}
|
||||
|
||||
pub trait IntoSpans<'a>: private::IntoSpansImpl<'a> {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue