pub struct VersionRange {
pub start: i16,
pub end: i16,
}Expand description
A range of versions.
Fields§
§start: i16§end: i16Implementations§
Source§impl VersionRange
impl VersionRange
pub fn within(&self, version: i16) -> bool
pub fn is_mandatory(&self, parent: Option<VersionRange>) -> bool
Trait Implementations§
Source§impl<'a> As<'a, VersionRange> for Wv<'a>
impl<'a> As<'a, VersionRange> for Wv<'a>
Source§impl<'a> AsOption<'a, VersionRange> for Wv<'a>
impl<'a> AsOption<'a, VersionRange> for Wv<'a>
Source§impl Clone for VersionRange
impl Clone for VersionRange
Source§fn clone(&self) -> VersionRange
fn clone(&self) -> VersionRange
Returns a duplicate of the value. Read more
1.0.0 · 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 VersionRange
impl Debug for VersionRange
Source§impl Default for VersionRange
impl Default for VersionRange
Source§fn default() -> VersionRange
fn default() -> VersionRange
Returns the “default value” for a type. Read more
Source§impl FromStr for VersionRange
impl FromStr for VersionRange
Source§impl Hash for VersionRange
impl Hash for VersionRange
Source§impl Ord for VersionRange
impl Ord for VersionRange
Source§fn cmp(&self, other: &VersionRange) -> Ordering
fn cmp(&self, other: &VersionRange) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VersionRange
impl PartialEq for VersionRange
Source§impl PartialOrd for VersionRange
impl PartialOrd for VersionRange
Source§impl ToTokens for VersionRange
impl ToTokens for VersionRange
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Copy for VersionRange
impl Eq for VersionRange
impl StructuralPartialEq for VersionRange
Auto Trait Implementations§
impl Freeze for VersionRange
impl RefUnwindSafe for VersionRange
impl Send for VersionRange
impl Sync for VersionRange
impl Unpin for VersionRange
impl UnwindSafe for VersionRange
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> 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> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.