pub struct ApiVersion(pub i64);Expand description
minAPIVersion / targetAPIVersion as written.
Old packages write the API level itself (9); newer ones write an
eight-digit number whose last three digits are the level
(50001013 is level 13).
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl Clone for ApiVersion
impl Clone for ApiVersion
impl Copy for ApiVersion
Source§impl Debug for ApiVersion
impl Debug for ApiVersion
Source§impl Display for ApiVersion
50001013(13), or just 9 when the value is the level.
impl Display for ApiVersion
50001013(13), or just 9 when the value is the level.
impl Eq for ApiVersion
Source§impl Hash for ApiVersion
impl Hash for ApiVersion
Source§impl Ord for ApiVersion
impl Ord for ApiVersion
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ApiVersion
impl PartialEq for ApiVersion
Source§impl PartialOrd for ApiVersion
impl PartialOrd for ApiVersion
impl StructuralPartialEq for ApiVersion
Auto Trait Implementations§
impl Forget for ApiVersion
impl Freeze for ApiVersion
impl Move for ApiVersion
impl RefUnwindSafe for ApiVersion
impl Send for ApiVersion
impl Sync for ApiVersion
impl Unpin for ApiVersion
impl UnsafeUnpin for ApiVersion
impl UnwindSafe for ApiVersion
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