Available on crate feature
blob
only.Structs
- A
TokenSource
that returns the lines of a byte slice as tokens. Seebyte_lines
andbyte_lines_with_terminator
for details - A
TokenSource
that returns the lines of astr
as tokens. Seelines
andlines_with_terminator
for details
Functions
- Returns a
TokenSource
that uses the lines indata
as Tokens. The newline seperator (\r\n
or\n
) is included in the emitted tokens. This means that changing the newline seperator from\r\n
to\n
(or omitting it fully on the last line) is detected bydiff
. - Returns a
TokenSource
that uses the lines indata
as Tokens. A lines is a continous subslice ofdata
which does not contain\n
(or\r\n
). The newline seperator (\r\n
or\n
) is not included in the emitted tokens. This means that changing the newline seperator from\r\n
to\n
(or omitting it fully on the last line) is not detected bydiff
. - Returns a
TokenSource
that uses the lines indata
as Tokens. The newline seperator (\r\n
or\n
) is not included in the emitted tokens. This means that changing the newline seperator from\r\n
to\n
(or omitting it fully on the last line) is not detected bydiff
. - Returns a
TokenSource
that uses the lines indata
as Tokens. The newline seperator (\r\n
or\n
) is included in the emitted tokens. This means that changing the newline seperator from\r\n
to\n
(or omitting it fully on the last line) is detected bydiff
.