Struct tugger_debian::SourceControl [−][src]
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]
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]
Obtain a handle on the general paragraph.
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]
fn default() -> SourceControl<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for SourceControl<'a>
impl<'a> Send for SourceControl<'a>
impl<'a> Sync for SourceControl<'a>
impl<'a> Unpin for SourceControl<'a>
impl<'a> UnwindSafe for SourceControl<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,