pub struct ParsedEvent<V> {
pub introduced: Option<ParsedBound<V>>,
pub fixed: Option<V>,
pub last_affected: Option<V>,
}Expand description
One OSV range event with its bounds pre-parsed into the version type V. Built once at
DB load (see parse_range) so the per-scan matcher never re-parses a bound string.
Fields§
§introduced: Option<ParsedBound<V>>None = no introduced event; Some(_) = an introduced bound (parsed or not).
fixed: Option<V>A parseable fixed bound, or None (absent OR unparseable — both simply skip, the
same as the string matcher’s and_then(parse)).
last_affected: Option<V>A parseable last_affected bound, or None (absent OR unparseable).
Trait Implementations§
Source§impl<V: Clone> Clone for ParsedEvent<V>
impl<V: Clone> Clone for ParsedEvent<V>
Source§fn clone(&self) -> ParsedEvent<V>
fn clone(&self) -> ParsedEvent<V>
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 moreAuto Trait Implementations§
impl<V> Freeze for ParsedEvent<V>where
V: Freeze,
impl<V> RefUnwindSafe for ParsedEvent<V>where
V: RefUnwindSafe,
impl<V> Send for ParsedEvent<V>where
V: Send,
impl<V> Sync for ParsedEvent<V>where
V: Sync,
impl<V> Unpin for ParsedEvent<V>where
V: Unpin,
impl<V> UnsafeUnpin for ParsedEvent<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for ParsedEvent<V>where
V: UnwindSafe,
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<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