This commit is contained in:
Jana Dönszelmann 2026-04-03 18:07:35 +02:00
parent bb8f6bedf6
commit 4a6c1020f4
No known key found for this signature in database
10 changed files with 113 additions and 34 deletions

View file

@ -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> {}