pub struct MavenView { /* private fields */ }Expand description
Typed view over the maven sub-index. Built once; get is O(1).
Implementations§
Source§impl MavenView
impl MavenView
Sourcepub fn get(
&self,
group: &str,
artifact: &str,
version: &str,
) -> Option<MavenPackage>
pub fn get( &self, group: &str, artifact: &str, version: &str, ) -> Option<MavenPackage>
O(1) lookup of the primary artifact (no classifier) for a GAV.
Sourcepub fn get_classified(
&self,
group: &str,
artifact: &str,
version: &str,
classifier: Option<&str>,
) -> Option<MavenPackage>
pub fn get_classified( &self, group: &str, artifact: &str, version: &str, classifier: Option<&str>, ) -> Option<MavenPackage>
O(1) lookup of a specific classifier (Some("sources")) or the primary
artifact (None).
Sourcepub fn list(&self) -> Vec<(String, String, String, Option<String>)>
pub fn list(&self) -> Vec<(String, String, String, Option<String>)>
Authoritative coords of every artifact: (group, artifact, version, classifier?).
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for MavenView
impl RefUnwindSafe for MavenView
impl Send for MavenView
impl Sync for MavenView
impl Unpin for MavenView
impl UnsafeUnpin for MavenView
impl UnwindSafe for MavenView
Blanket Implementations§
impl<T> Allocation for T
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