Struct debian_control::lossless::relations::Relations
source · pub struct Relations(/* private fields */);Implementations§
source§impl Relations
impl Relations
pub fn new() -> Self
sourcepub fn wrap_and_sort(self) -> Self
pub fn wrap_and_sort(self) -> Self
Wrap and sort this relations field
pub fn entries(&self) -> impl Iterator<Item = Entry> + '_
pub fn iter(&self) -> impl Iterator<Item = Entry> + '_
pub fn remove(&mut self, idx: usize) -> Entry
👎Deprecated: Use
remove_entry insteadsourcepub fn remove_entry(&mut self, idx: usize) -> Entry
pub fn remove_entry(&mut self, idx: usize) -> Entry
Remove the entry at the given index
pub fn replace(&mut self, idx: usize, entry: Entry)
pub fn push(&mut self, entry: Entry)
pub fn substvars(&self) -> impl Iterator<Item = String> + '_
pub fn parse_relaxed(s: &str, allow_substvar: bool) -> (Relations, Vec<String>)
pub fn satisfied_by(&self, package_version: impl VersionLookup + Copy) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relations
impl !RefUnwindSafe for Relations
impl !Send for Relations
impl !Sync for Relations
impl Unpin for Relations
impl !UnwindSafe for Relations
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