Enum perf_event_data::endian::Dynamic
source · pub enum Dynamic {
Big,
Little,
}Expand description
Either big or little endian, chosen at runtime.
Variants§
Trait Implementations§
source§impl Endian for Dynamic
impl Endian for Dynamic
source§fn convert_u16(&self, bytes: [u8; 2]) -> u16
fn convert_u16(&self, bytes: [u8; 2]) -> u16
Convert a
u16 from the source endian to the native endian.source§fn convert_u32(&self, bytes: [u8; 4]) -> u32
fn convert_u32(&self, bytes: [u8; 4]) -> u32
Convert a
u32 from the source endian to the native endian.source§impl PartialEq for Dynamic
impl PartialEq for Dynamic
impl Copy for Dynamic
impl Eq for Dynamic
impl StructuralEq for Dynamic
impl StructuralPartialEq for Dynamic
Auto Trait Implementations§
impl RefUnwindSafe for Dynamic
impl Send for Dynamic
impl Sync for Dynamic
impl Unpin for Dynamic
impl UnwindSafe for Dynamic
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