pub struct InvalidStabilityOccurrence {
pub range: Range,
pub raw: String,
}Expand description
One manifest-declared minimum-stability value that failed to parse.
Failed via StabilityFloor::from_str — returned by
crate::ParseResult::invalid_minimum_stability and surfaced as a diagnostic by
deps_core::lsp_helpers::diagnostics’ shared notice.
§Examples
use deps_core::selection::InvalidStabilityOccurrence;
use deps_core::position::{Position, Range};
let occurrence = InvalidStabilityOccurrence {
range: Range::new(Position::new(0, 0), Position::new(0, 5)),
raw: "betta".to_string(),
};
assert_eq!(occurrence.raw, "betta");Fields§
§range: RangeRange of the offending value — the value’s own span for a string that failed to parse, or the declaring key’s span for a non-string value.
raw: StringThe string contents (for a string value that failed to parse) or the raw JSON token text (for a non-string value).
Trait Implementations§
Source§impl Clone for InvalidStabilityOccurrence
impl Clone for InvalidStabilityOccurrence
Source§impl Debug for InvalidStabilityOccurrence
impl Debug for InvalidStabilityOccurrence
impl Eq for InvalidStabilityOccurrence
impl StructuralPartialEq for InvalidStabilityOccurrence
Auto Trait Implementations§
impl Freeze for InvalidStabilityOccurrence
impl RefUnwindSafe for InvalidStabilityOccurrence
impl Send for InvalidStabilityOccurrence
impl Sync for InvalidStabilityOccurrence
impl Unpin for InvalidStabilityOccurrence
impl UnsafeUnpin for InvalidStabilityOccurrence
impl UnwindSafe for InvalidStabilityOccurrence
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§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.