Struct assorted_debian_utils::wb::SourceSpecifier
source · [−]pub struct SourceSpecifier<'a> { /* private fields */ }
Expand description
Specifier for a source with version, architecture and suite
Implementations
sourceimpl<'a> SourceSpecifier<'a>
impl<'a> SourceSpecifier<'a>
sourcepub fn new(source: &'a str) -> Self
pub fn new(source: &'a str) -> Self
Create a new source specifier for the given source package name.
sourcepub fn with_version(&mut self, version: &'a PackageVersion) -> &mut Self
pub fn with_version(&mut self, version: &'a PackageVersion) -> &mut Self
Specify version of the source package.
sourcepub fn with_suite(&mut self, suite: &'a SuiteOrCodename) -> &mut Self
pub fn with_suite(&mut self, suite: &'a SuiteOrCodename) -> &mut Self
Specify suite. If not set, unstable
is used.
sourcepub fn with_architectures(
&mut self,
architectures: &[WBArchitecture]
) -> &mut Self
pub fn with_architectures(
&mut self,
architectures: &[WBArchitecture]
) -> &mut Self
Specify architectures. If not set, the nmu
will be scheduled for ANY
.
sourcepub fn with_archive_architectures(
&mut self,
architectures: &[Architecture]
) -> &mut Self
pub fn with_archive_architectures(
&mut self,
architectures: &[Architecture]
) -> &mut Self
Specify architectures. If not set, the nmu
will be scheduled for ANY
.
Trait Implementations
sourceimpl<'a> Clone for SourceSpecifier<'a>
impl<'a> Clone for SourceSpecifier<'a>
sourcefn clone(&self) -> SourceSpecifier<'a>
fn clone(&self) -> SourceSpecifier<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for SourceSpecifier<'a>
impl<'a> Debug for SourceSpecifier<'a>
sourceimpl<'a> Display for SourceSpecifier<'a>
impl<'a> Display for SourceSpecifier<'a>
sourceimpl<'a> PartialEq<SourceSpecifier<'a>> for SourceSpecifier<'a>
impl<'a> PartialEq<SourceSpecifier<'a>> for SourceSpecifier<'a>
sourcefn eq(&self, other: &SourceSpecifier<'a>) -> bool
fn eq(&self, other: &SourceSpecifier<'a>) -> bool
impl<'a> Eq for SourceSpecifier<'a>
impl<'a> StructuralEq for SourceSpecifier<'a>
impl<'a> StructuralPartialEq for SourceSpecifier<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SourceSpecifier<'a>
impl<'a> Send for SourceSpecifier<'a>
impl<'a> Sync for SourceSpecifier<'a>
impl<'a> Unpin for SourceSpecifier<'a>
impl<'a> UnwindSafe for SourceSpecifier<'a>
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.