Struct debian_control::relations::Relation
source · pub struct Relation(/* private fields */);
Implementations§
source§impl Relation
impl Relation
pub fn new( name: &str, version_constraint: Option<(VersionConstraint, Version)>, ) -> Self
sourcepub fn drop_constraint(&mut self) -> bool
pub fn drop_constraint(&mut self) -> bool
Remove the version constraint from the relation.
sourcepub fn version(&self) -> Option<(VersionConstraint, Version)>
pub fn version(&self) -> Option<(VersionConstraint, Version)>
Return the version constraint and the version it is constrained to.
sourcepub fn architectures(&self) -> impl Iterator<Item = String> + '_
pub fn architectures(&self) -> impl Iterator<Item = String> + '_
Return an iterator over the architectures for this relation
sourcepub fn profiles(&self) -> impl Iterator<Item = Vec<BuildProfile>> + '_
pub fn profiles(&self) -> impl Iterator<Item = Vec<BuildProfile>> + '_
Returns an iterator over the build profiles for this relation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relation
impl !RefUnwindSafe for Relation
impl !Send for Relation
impl !Sync for Relation
impl Unpin for Relation
impl !UnwindSafe for Relation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more