Struct makedeb_srcinfo::SplitDependency
source · pub struct SplitDependency { /* private fields */ }
Expand description
A Struct representing a dependeny string (i.e. pkg1|pkg2>=5
).
Note that any prefix such as p!
will be kept on the first package, and must be removed manually client-side.
Implementations
sourceimpl SplitDependency
impl SplitDependency
sourcepub fn new(dep_string: &str) -> Self
pub fn new(dep_string: &str) -> Self
Create a new SplitDependency
instance.
sourcepub fn as_control(&self) -> String
pub fn as_control(&self) -> String
Print a Debian control-file styled representation of this dependency.
Auto Trait Implementations
impl RefUnwindSafe for SplitDependency
impl Send for SplitDependency
impl Sync for SplitDependency
impl Unpin for SplitDependency
impl UnwindSafe for SplitDependency
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more