Struct debian_packaging::repository::contents::ContentsFile
source · [−]pub struct ContentsFile { /* private fields */ }Expand description
Represents a Contents file.
A Contents file maps paths to packages. It facilitates lookups of which paths
are in which packages.
Internally, paths are stored as String because bulk operations against paths can be expensive due to more expensive comparison/equality checks.
Implementations
sourceimpl ContentsFile
impl ContentsFile
sourcepub fn add_package_path(&mut self, path: String, package: String)
pub fn add_package_path(&mut self, path: String, package: String)
Register a path as belonging to a package.
sourcepub fn packages_with_path(&self, path: &str) -> Box<dyn Iterator<Item = &str>>
pub fn packages_with_path(&self, path: &str) -> Box<dyn Iterator<Item = &str>>
Obtain an iterator of packages having the specified path.
Trait Implementations
sourceimpl Clone for ContentsFile
impl Clone for ContentsFile
sourcefn clone(&self) -> ContentsFile
fn clone(&self) -> ContentsFile
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 more
sourceimpl Debug for ContentsFile
impl Debug for ContentsFile
sourceimpl Default for ContentsFile
impl Default for ContentsFile
sourcefn default() -> ContentsFile
fn default() -> ContentsFile
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContentsFile
impl Send for ContentsFile
impl Sync for ContentsFile
impl Unpin for ContentsFile
impl UnwindSafe for ContentsFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more