Trait AbstractControlEditor

Source
pub trait AbstractControlEditor {
    // Required methods
    fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'a> + 'a>>;
    fn binaries<'a>(&'a mut self) -> Vec<Box<dyn AbstractBinary + 'a>>;
    fn commit(&self) -> bool;
    fn wrap_and_sort(&mut self);
}
Expand description

Interface for editing debian packages, whether backed by real control files or debcargo files.

Required Methods§

Source

fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'a> + 'a>>

Get the source package.

Source

fn binaries<'a>(&'a mut self) -> Vec<Box<dyn AbstractBinary + 'a>>

Get the binary packages.

Source

fn commit(&self) -> bool

Commit the changes.

Source

fn wrap_and_sort(&mut self)

Wrap and sort the control file.

Implementors§