pub trait AbstractControlEditor {
// Required methods
fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'_> + '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§
sourcefn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'_> + 'a>>
fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'_> + 'a>>
Get the source package.
sourcefn binaries<'a>(&'a mut self) -> Vec<Box<dyn AbstractBinary + 'a>>
fn binaries<'a>(&'a mut self) -> Vec<Box<dyn AbstractBinary + 'a>>
Get the binary packages.
sourcefn wrap_and_sort(&mut self)
fn wrap_and_sort(&mut self)
Wrap and sort the control file.