Struct version_history::AbiRevision
source · pub struct AbiRevision(/* private fields */);
Expand description
An AbiRevision
is the 64-bit stamp representing an ABI revision of the
Fuchsia platform.
Implementations§
source§impl AbiRevision
impl AbiRevision
sourcepub const INVALID: AbiRevision = _
pub const INVALID: AbiRevision = _
An ABI revision that is never supported by the platform. To be used when an ABI revision is necessary, but none makes sense.
pub const PATH: &'static str = "meta/fuchsia.abi/abi-revision"
sourcepub fn from_bytes(b: [u8; 8]) -> Self
pub fn from_bytes(b: [u8; 8]) -> Self
Parse the ABI revision from little-endian bytes.
pub const fn from_u64(u: u64) -> AbiRevision
pub fn as_u64(&self) -> u64
pub fn explanation(self) -> AbiRevisionExplanation
Trait Implementations§
source§impl Clone for AbiRevision
impl Clone for AbiRevision
source§fn clone(&self) -> AbiRevision
fn clone(&self) -> AbiRevision
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AbiRevision
impl Debug for AbiRevision
source§impl<'de> Deserialize<'de> for AbiRevision
impl<'de> Deserialize<'de> for AbiRevision
source§fn deserialize<D>(deserializer: D) -> Result<AbiRevision, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<AbiRevision, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for AbiRevision
impl Display for AbiRevision
source§impl From<&u64> for AbiRevision
impl From<&u64> for AbiRevision
source§fn from(abi_revision: &u64) -> AbiRevision
fn from(abi_revision: &u64) -> AbiRevision
Converts to this type from the input type.
source§impl From<AbiRevision> for u64
impl From<AbiRevision> for u64
source§fn from(abi_revision: AbiRevision) -> u64
fn from(abi_revision: AbiRevision) -> u64
Converts to this type from the input type.
source§impl From<u64> for AbiRevision
impl From<u64> for AbiRevision
source§fn from(abi_revision: u64) -> AbiRevision
fn from(abi_revision: u64) -> AbiRevision
Converts to this type from the input type.
source§impl FromStr for AbiRevision
impl FromStr for AbiRevision
source§impl Hash for AbiRevision
impl Hash for AbiRevision
source§impl Ord for AbiRevision
impl Ord for AbiRevision
source§fn cmp(&self, other: &AbiRevision) -> Ordering
fn cmp(&self, other: &AbiRevision) -> Ordering
1.21.0 · 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
source§impl PartialEq for AbiRevision
impl PartialEq for AbiRevision
source§fn eq(&self, other: &AbiRevision) -> bool
fn eq(&self, other: &AbiRevision) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AbiRevision
impl PartialOrd for AbiRevision
source§fn partial_cmp(&self, other: &AbiRevision) -> Option<Ordering>
fn partial_cmp(&self, other: &AbiRevision) -> Option<Ordering>
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 moresource§impl TryFrom<&[u8]> for AbiRevision
impl TryFrom<&[u8]> for AbiRevision
§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
impl Copy for AbiRevision
impl Eq for AbiRevision
impl StructuralPartialEq for AbiRevision
Auto Trait Implementations§
impl Freeze for AbiRevision
impl RefUnwindSafe for AbiRevision
impl Send for AbiRevision
impl Sync for AbiRevision
impl Unpin for AbiRevision
impl UnwindSafe for AbiRevision
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)