Struct version_history_shared::ApiLevel
source · pub struct ApiLevel(/* private fields */);
Expand description
An ApiLevel
represents an API level of the Fuchsia platform.
Implementations§
source§impl ApiLevel
impl ApiLevel
sourcepub const HEAD: ApiLevel = _
pub const HEAD: ApiLevel = _
The HEAD
pseudo-API level, representing the bleeding edge of
development.
sourcepub const LEGACY: ApiLevel = _
pub const LEGACY: ApiLevel = _
The LEGACY
pseudo-API level, which is used in platform builds.
TODO: https://fxbug.dev/42085274 - Remove this once LEGACY
is actually
gone, and use HEAD
instead.
pub const fn from_u64(value: u64) -> Self
pub fn as_u64(&self) -> u64
Trait Implementations§
source§impl<'de> Deserialize<'de> for ApiLevel
impl<'de> Deserialize<'de> for ApiLevel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ApiLevel
impl Ord for ApiLevel
source§impl PartialEq for ApiLevel
impl PartialEq for ApiLevel
source§impl PartialOrd for ApiLevel
impl PartialOrd for ApiLevel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ApiLevel
impl Eq 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 UnwindSafe for ApiLevel
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