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§impl PartialOrd for AbiRevision
impl PartialOrd for AbiRevision
Source§impl TryFrom<&[u8]> for AbiRevision
impl TryFrom<&[u8]> for AbiRevision
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§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
)