pub struct CandidateIndex { /* private fields */ }Implementations§
Source§impl CandidateIndex
impl CandidateIndex
pub fn insert(&mut self, candidate: CandidateMetadata)
pub fn candidates(&self, package: &CanonicalPackageId) -> &[CandidateMetadata]
pub fn package_ids(&self) -> impl Iterator<Item = &CanonicalPackageId>
Trait Implementations§
Source§impl Clone for CandidateIndex
impl Clone for CandidateIndex
Source§fn clone(&self) -> CandidateIndex
fn clone(&self) -> CandidateIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CandidateIndex
impl Debug for CandidateIndex
Source§impl Default for CandidateIndex
impl Default for CandidateIndex
Source§fn default() -> CandidateIndex
fn default() -> CandidateIndex
Returns the “default value” for a type. Read more
impl Eq for CandidateIndex
Source§impl PartialEq for CandidateIndex
impl PartialEq for CandidateIndex
impl StructuralPartialEq for CandidateIndex
Auto Trait Implementations§
impl Freeze for CandidateIndex
impl RefUnwindSafe for CandidateIndex
impl Send for CandidateIndex
impl Sync for CandidateIndex
impl Unpin for CandidateIndex
impl UnsafeUnpin for CandidateIndex
impl UnwindSafe for CandidateIndex
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.