pub enum SdkVersion {
Level(u32),
Codename(String),
}Expand description
An SDK version attribute: an API level, or the codename of a preview SDK.
Variants§
Implementations§
Source§impl SdkVersion
impl SdkVersion
Sourcepub fn api_level(&self) -> Result<ApiLevel, ApiLevelError>
pub fn api_level(&self) -> Result<ApiLevel, ApiLevelError>
The API level, treating a preview codename as the release after the
newest one this crate knows, as apksigner does.
Trait Implementations§
Source§impl Clone for SdkVersion
impl Clone for SdkVersion
Source§impl Debug for SdkVersion
impl Debug for SdkVersion
Source§impl Display for SdkVersion
impl Display for SdkVersion
impl Eq for SdkVersion
Source§impl Hash for SdkVersion
impl Hash for SdkVersion
Source§impl PartialEq for SdkVersion
impl PartialEq for SdkVersion
impl StructuralPartialEq for SdkVersion
Auto Trait Implementations§
impl Freeze for SdkVersion
impl RefUnwindSafe for SdkVersion
impl Send for SdkVersion
impl Sync for SdkVersion
impl Unpin for SdkVersion
impl UnsafeUnpin for SdkVersion
impl UnwindSafe for SdkVersion
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<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.