pub struct DebcargoEditor {
pub debcargo: DocumentMut,
pub cargo: Option<DocumentMut>,
/* private fields */
}Expand description
A wrapper around a debcargo.toml file.
Fields§
§debcargo: DocumentMutThe contents of the debcargo.toml file.
cargo: Option<DocumentMut>The contents of the Cargo.toml file.
Implementations§
Source§impl DebcargoEditor
impl DebcargoEditor
Sourcepub fn from_directory(path: &Path) -> Result<Self, Error>
pub fn from_directory(path: &Path) -> Result<Self, Error>
Open a debcargo.toml file in a directory.
Sourcepub fn source(&mut self) -> DebcargoSource<'_>
pub fn source(&mut self) -> DebcargoSource<'_>
Return the source package
Sourcepub fn binaries(&mut self) -> impl Iterator<Item = DebcargoBinary<'_>>
pub fn binaries(&mut self) -> impl Iterator<Item = DebcargoBinary<'_>>
Return an iterator over the binaries in the package.
Trait Implementations§
Source§impl AbstractControlEditor for DebcargoEditor
impl AbstractControlEditor for DebcargoEditor
Source§fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'a> + 'a>>
fn source<'a>(&'a mut self) -> Option<Box<dyn AbstractSource<'a> + 'a>>
Get the source package.
Source§fn wrap_and_sort(&mut self)
fn wrap_and_sort(&mut self)
Wrap and sort the control file.
Source§impl Default for DebcargoEditor
impl Default for DebcargoEditor
Source§impl From<DocumentMut> for DebcargoEditor
impl From<DocumentMut> for DebcargoEditor
Source§fn from(doc: DocumentMut) -> Self
fn from(doc: DocumentMut) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DebcargoEditor
impl RefUnwindSafe for DebcargoEditor
impl Send for DebcargoEditor
impl Sync for DebcargoEditor
impl Unpin for DebcargoEditor
impl UnwindSafe for DebcargoEditor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more