pub struct SourcePackageControlFile<'a> { /* private fields */ }Expand description
Represents a debian/control file.
Specified at https://www.debian.org/doc/debian-policy/ch-controlfields.html#source-package-control-files-debian-control.
The 1st paragraph defines the source package. Subsequent paragraphs define binary packages that the source tree builds.
Implementations§
source§impl<'a> SourcePackageControlFile<'a>
impl<'a> SourcePackageControlFile<'a>
sourcepub fn from_paragraphs(
paragraphs: impl Iterator<Item = ControlParagraph<'a>>
) -> Result<Self>
pub fn from_paragraphs( paragraphs: impl Iterator<Item = ControlParagraph<'a>> ) -> Result<Self>
Construct an instance from an iterable of ControlParagraph.
sourcepub fn parse_reader<R: BufRead>(reader: &mut R) -> Result<Self>
pub fn parse_reader<R: BufRead>(reader: &mut R) -> Result<Self>
Construct an instance by parsing a control file from a reader.
sourcepub fn general_paragraph(&self) -> &ControlParagraph<'a>
pub fn general_paragraph(&self) -> &ControlParagraph<'a>
Obtain a handle on the general paragraph.
sourcepub fn binary_paragraphs(&self) -> impl Iterator<Item = &ControlParagraph<'a>>
pub fn binary_paragraphs(&self) -> impl Iterator<Item = &ControlParagraph<'a>>
Obtain an iterator over paragraphs defining binaries.
Trait Implementations§
source§impl<'a> Default for SourcePackageControlFile<'a>
impl<'a> Default for SourcePackageControlFile<'a>
source§fn default() -> SourcePackageControlFile<'a>
fn default() -> SourcePackageControlFile<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SourcePackageControlFile<'a>
impl<'a> Send for SourcePackageControlFile<'a>
impl<'a> Sync for SourcePackageControlFile<'a>
impl<'a> Unpin for SourcePackageControlFile<'a>
impl<'a> UnwindSafe for SourcePackageControlFile<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more