pub struct EntryMap {
pub map: HashMap<(Group, Artifact), Entry>,
}Fields§
§map: HashMap<(Group, Artifact), Entry>Implementations§
Source§impl EntryMap
impl EntryMap
pub fn new() -> Self
pub fn with_updates(&self) -> Vec<(Group, Artifact, Entry)>
pub fn get(&self, group: &Group, artifact: &Artifact) -> Option<&Entry>
pub fn get_mut( &mut self, group: &Group, artifact: &Artifact, ) -> Option<&mut Entry>
pub fn insert(&mut self, group: Group, artifact: Artifact, entry: Entry)
pub fn remove(&mut self, group: &Group, artifact: &Artifact) -> Option<Entry>
pub fn groups_and_artifacts(&self) -> Vec<(Group, Artifact)>
pub fn add_versions( &mut self, versions_map: &HashMap<(Group, Artifact), Vec<Version>>, )
pub fn from_dependency_map(dependencies: &DependencyMap) -> EntryMap
Sourcepub fn selected(
&self,
) -> impl Iterator<Item = (&Group, &Artifact, &Version, &Version, &Vec<Location>)>
pub fn selected( &self, ) -> impl Iterator<Item = (&Group, &Artifact, &Version, &Version, &Vec<Location>)>
should return an iter of the Group, Artifact, Version, and Locations for each selected item.
pub fn toggle_selection(&mut self, group: &Group, artifact: &Artifact)
pub fn next_version_type(&mut self, group: &Group, artifact: &Artifact)
pub fn prev_version_type(&mut self, group: &Group, artifact: &Artifact)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryMap
impl RefUnwindSafe for EntryMap
impl Send for EntryMap
impl Sync for EntryMap
impl Unpin for EntryMap
impl UnwindSafe for EntryMap
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more