Struct debian_packaging::control::ControlFileParser
source · [−]pub struct ControlFileParser { /* private fields */ }Expand description
Holds parsing state for Debian control files.
Instances of this type are essentially fed lines of text and periodically emit ControlParagraph instances as they are completed.
Implementations
Write a line to the parser.
If the line terminates an in-progress paragraph, that paragraph will be returned.
Otherwise Ok(None) is returned.
Err is returned if the control file in invalid.
Finish parsing, consuming self.
If a non-empty paragraph is present in the instance, it will be returned. Else if there is no unflushed state, None is returned.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ControlFileParser
impl Send for ControlFileParser
impl Sync for ControlFileParser
impl Unpin for ControlFileParser
impl UnwindSafe for ControlFileParser
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more