pub fn masked_lines(
before: &[u8],
bytes: &[u8],
at_line: bool,
more: bool,
full: bool,
) -> MaskedPartExpand description
bytes, a part of a log, as shown: masked (a task may print an address with its
password), whole lines only, so no secret is shown in pieces (a reader picks where a part
starts and how long it is). Not starting a line (at_line false), it starts after its
first newline, all of it skipped when it has none. With more to come, it ends after its
last newline, the rest left for the next part. With none in it, it waits for its line’s
end, unless it is full (as long as asked) and starts a line: then it is shown to its
last whitespace (its last token may go on), ending with a note that it is cut, and the
rest of that line is skipped, as a part not starting a line is. A short part shows a
line’s start at most, never its pieces. before, the bytes just before the part, is
masked with it, not shown: a value begun there (a quoted one going on over lines) is
hidden in the part too.