pub struct ApiLevel(/* private fields */);Expand description
An Android API level, as used by minSdkVersion and targetSdkVersion.
Android stores API levels as int, so valid values are 1..=i32::MAX.
Named constants follow android.os.Build.VERSION_CODES.
Implementations§
Source§impl ApiLevel
impl ApiLevel
pub const BASE: Self
pub const GINGERBREAD: Self
pub const JELLY_BEAN_MR2: Self
pub const KITKAT: Self
pub const LOLLIPOP: Self
pub const M: Self
pub const N: Self
pub const O: Self
pub const P: Self
pub const Q: Self
pub const R: Self
pub const S: Self
pub const TIRAMISU: Self
pub const UPSIDE_DOWN_CAKE: Self
pub const VANILLA_ICE_CREAM: Self
pub const BAKLAVA: Self
Trait Implementations§
impl Copy for ApiLevel
impl Eq for ApiLevel
Source§impl Ord for ApiLevel
impl Ord for ApiLevel
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 PartialOrd for ApiLevel
impl PartialOrd for ApiLevel
impl StructuralPartialEq for ApiLevel
Auto Trait Implementations§
impl Freeze for ApiLevel
impl RefUnwindSafe for ApiLevel
impl Send for ApiLevel
impl Sync for ApiLevel
impl Unpin for ApiLevel
impl UnsafeUnpin for ApiLevel
impl UnwindSafe for ApiLevel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
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.