pub struct ApiVersionRange {
pub min_version: i16,
pub max_version: i16,
}Expand description
A contiguous range of supported API versions, inclusive on both ends.
Fields§
§min_version: i16Lowest supported version.
max_version: i16Highest supported version.
Trait Implementations§
Source§impl Clone for ApiVersionRange
impl Clone for ApiVersionRange
Source§fn clone(&self) -> ApiVersionRange
fn clone(&self) -> ApiVersionRange
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 moreimpl Copy for ApiVersionRange
Source§impl Debug for ApiVersionRange
impl Debug for ApiVersionRange
impl Eq for ApiVersionRange
Source§impl PartialEq for ApiVersionRange
impl PartialEq for ApiVersionRange
Source§fn eq(&self, other: &ApiVersionRange) -> bool
fn eq(&self, other: &ApiVersionRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiVersionRange
Auto Trait Implementations§
impl Freeze for ApiVersionRange
impl RefUnwindSafe for ApiVersionRange
impl Send for ApiVersionRange
impl Sync for ApiVersionRange
impl Unpin for ApiVersionRange
impl UnsafeUnpin for ApiVersionRange
impl UnwindSafe for ApiVersionRange
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