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
sourceimpl<'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
sourceimpl<'a> Default for SourcePackageControlFile<'a>
impl<'a> Default for SourcePackageControlFile<'a>
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more