Struct osiris_data::data::atomic::Word
source · pub struct Word(/* private fields */);Expand description
Describes the machine’s base type. Every base operation occurs on this type.
Implementations§
source§impl Word
impl Word
sourcepub const fn from_usize(value: usize) -> Self
pub const fn from_usize(value: usize) -> Self
Creates a new word from its 64 bits value.
sourcepub const fn from_be_bytes(value: [u8; 8]) -> Self
pub const fn from_be_bytes(value: [u8; 8]) -> Self
Create a native endian integer value from its representation as a byte array in big endian.
sourcepub const fn merge(top: HalfWord, bottom: HalfWord) -> Self
pub const fn merge(top: HalfWord, bottom: HalfWord) -> Self
Creates a new word from two half-words.
sourcepub const fn to_be_bytes(&self) -> [u8; 8]
pub const fn to_be_bytes(&self) -> [u8; 8]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
Trait Implementations§
source§impl Ord for Word
impl Ord for Word
source§impl PartialEq for Word
impl PartialEq for Word
source§impl PartialOrd for Word
impl PartialOrd for Word
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 ProduceConsume<Word> for WordQueue
impl ProduceConsume<Word> for WordQueue
source§impl ProduceConsume<Word> for WordStack
impl ProduceConsume<Word> for WordStack
impl Copy for Word
impl Eq for Word
impl StructuralPartialEq for Word
Auto Trait Implementations§
impl Freeze for Word
impl RefUnwindSafe for Word
impl Send for Word
impl Sync for Word
impl Unpin for Word
impl UnwindSafe for Word
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