Struct tugger_debian::SourceControl [−][src]
pub struct SourceControl<'a> { /* fields omitted */ }
Represents a debian/control
file.
Specified at https://www.debian.org/doc/debian-policy/ch-controlfields.html#source-package-control-files-debian-control.
Implementations
impl<'a> SourceControl<'a>
[src]
impl<'a> SourceControl<'a>
[src]pub fn parse_reader<R: BufRead>(reader: &mut R) -> Result<Self, ControlError>
[src]
pub fn parse_reader<R: BufRead>(reader: &mut R) -> Result<Self, ControlError>
[src]Construct an instance by parsing a control file from a reader.
pub fn parse_str(s: &str) -> Result<Self, ControlError>
[src]
pub fn general_paragraph(&self) -> &ControlParagraph<'a>
[src]
pub fn general_paragraph(&self) -> &ControlParagraph<'a>
[src]Obtain a handle on the general paragraph.
pub fn binary_paragraphs(&self) -> impl Iterator<Item = &ControlParagraph<'a>>
[src]
pub fn binary_paragraphs(&self) -> impl Iterator<Item = &ControlParagraph<'a>>
[src]Obtain an iterator over paragraphs defining binaries.
Trait Implementations
impl<'a> Default for SourceControl<'a>
[src]
impl<'a> Default for SourceControl<'a>
[src]fn default() -> SourceControl<'a>
[src]
fn default() -> SourceControl<'a>
[src]Returns the “default value” for a type. Read more