pub trait LineStream<'a> {
// Required methods
fn next_line(&mut self) -> Option<&'a str>;
fn peek_line(&mut self) -> Option<&'a str>;
// Provided method
fn remainder_is_whitespace(&mut self) -> bool { ... }
}Expand description
Line source with peek for section detection (blank-line separators).
Implemented by the memchr cursor on the hot iterator path and by
Peekable<I> for tests / ad-hoc callers.
Required Methods§
Provided Methods§
Sourcefn remainder_is_whitespace(&mut self) -> bool
fn remainder_is_whitespace(&mut self) -> bool
True when every remaining line, including the current peek, is empty or whitespace. Default is false so a one-line peek cannot hide a following section.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".