pub enum RequirementStatus {
UpToDate,
Outdated,
Unresolved,
}Expand description
Result of checking whether a dependency’s declared requirement is already satisfied by the latest known version.
Diagnostics and inlay hints read this result differently: diagnostics only need to know
whether it is safe to skip the “Newer version available” warning, so both UpToDate and
Unresolved suppress it. Inlay hints additionally need to distinguish Unresolved from
UpToDate, since an unresolved requirement (e.g. a dangling Gradle version-catalog
version.ref alias, or an unexpanded Maven ${property}) must not render an “up to
date” badge that was never actually verified.
Variants§
UpToDate
The latest version satisfies the declared requirement.
Outdated
The latest version does not satisfy the declared requirement — a newer version is available.
Unresolved
The requirement could not be resolved to a concrete constraint, so no comparison could be made.
Trait Implementations§
Source§impl Clone for RequirementStatus
impl Clone for RequirementStatus
Source§fn clone(&self) -> RequirementStatus
fn clone(&self) -> RequirementStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RequirementStatus
Source§impl Debug for RequirementStatus
impl Debug for RequirementStatus
impl Eq for RequirementStatus
Source§impl PartialEq for RequirementStatus
impl PartialEq for RequirementStatus
Source§fn eq(&self, other: &RequirementStatus) -> bool
fn eq(&self, other: &RequirementStatus) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RequirementStatus
Auto Trait Implementations§
impl Freeze for RequirementStatus
impl RefUnwindSafe for RequirementStatus
impl Send for RequirementStatus
impl Sync for RequirementStatus
impl Unpin for RequirementStatus
impl UnsafeUnpin for RequirementStatus
impl UnwindSafe for RequirementStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.