pub struct AbiRevision(/* private fields */);Expand description
The wire revision marker. Only KERNEL_ABI_VERSION decodes — §16.2 has no negotiation, no
adapter and no inference from missing fields, so the revision check belongs in the type, not
in one lucky code path.
Implementations§
Trait Implementations§
Source§impl Clone for AbiRevision
impl Clone for AbiRevision
Source§fn clone(&self) -> AbiRevision
fn clone(&self) -> AbiRevision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AbiRevision
Source§impl Debug for AbiRevision
impl Debug for AbiRevision
Source§impl Default for AbiRevision
impl Default for AbiRevision
Source§impl<'de> Deserialize<'de> for AbiRevision
impl<'de> Deserialize<'de> for AbiRevision
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq 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 (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
Source§impl PartialEq for AbiRevision
impl PartialEq for AbiRevision
Source§impl PartialOrd for AbiRevision
impl PartialOrd for AbiRevision
Source§impl Serialize for AbiRevision
impl Serialize 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 UnsafeUnpin 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