MCPcopy Create free account
hub / github.com/archlinux/alpm / till_line_end

Function till_line_end

alpm-srcinfo/src/source_info/parser.rs:70–79  ·  view source on GitHub ↗

Recognizes all content until the end of line. This function is called after a ` = ` has been recognized using [`delimiter`]. It extends upon winnow's [`till_line_ending`] by also consuming the newline character. [`till_line_ending`]:

(input: &mut &'s str)

Source from the content-addressed store, hash-verified

68/// For example, all checksums may be architecture specific.
69///
70/// # Example
71///
72/// ```text
73/// # Without architecture
74/// sha256 = 0db1b39fd70097c6733cdcce56b1559ece5521ec1aad9ee1d520dda73eff03d0
75///
76/// # With architecture
77/// sha256_x86_64 = 0db1b39fd70097c6733cdcce56b1559ece5521ec1aad9ee1d520dda73eff03d0
78/// ```
79///
80/// The above would be reflected by the following code.
81/// ```
82/// use std::str::FromStr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected