Trait bitintr::Rev
[−]
[src]
pub trait Rev { fn rev(self) -> Self; }
Byte reverse
Required Methods
fn rev(self) -> Self
Reverse the order of the bytes.
Keywords: count leading sign bits, count leading ones, count leading bits set.
Instructions
REV
:- Description: Reverses the byte order in a register.
- Architecture: ARMv6, ARMv7, ARMv8.
- Registers: 32 (v6, v7)/64 (v8) bits.
Example
let n = 0b1111_1111_1100_1010u16; let m = 0b1100_1010_1111_1111u16; assert_eq!(n.rev(), m); assert_eq!(m.rev(), n);
Implementors
impl Rev for u8
impl Rev for u16
impl Rev for u32
impl Rev for u64
impl Rev for i8
impl Rev for i16
impl Rev for i32
impl Rev for i64