#[repr(transparent)]pub struct Be<T>(pub T);
Expand description
An integer stored in big-endian byte order.
§Examples
use endian_num::Be;
let n = 0x1Au32;
if cfg!(target_endian = "big") {
assert_eq!(Be::<u32>::from_ne(n).0, n);
} else {
assert_eq!(Be::<u32>::from_ne(n).0, n.swap_bytes());
}
Tuple Fields§
§0: T
Implementations§
Source§impl Be<u8>
impl Be<u8>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u8>::MIN, Be::<u8>::from_ne(u8::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u8>::MAX, Be::<u8>::from_ne(u8::MAX));
Sourcepub const BITS: u32 = 8u32
pub const BITS: u32 = 8u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u8>::BITS, u8::BITS);
Sourcepub const fn from_ne(n: u8) -> Self
pub const fn from_ne(n: u8) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au8;
if cfg!(target_endian = "big") {
assert_eq!(Be::<u8>::from_ne(n).0, n);
} else {
assert_eq!(Be::<u8>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<u8>) -> Self
pub const fn from_le(n: Le<u8>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Au8;
assert_eq!(Be::<u8>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> u8
pub const fn to_ne(self) -> u8
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au8;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<u8>
pub const fn to_le(self) -> Le<u8>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au8;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 1]
pub const fn to_be_bytes(self) -> [u8; 1]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u8>::from_ne(0x12).to_be_bytes();
assert_eq!(bytes, [0x12]);
Sourcepub const fn to_le_bytes(self) -> [u8; 1]
pub const fn to_le_bytes(self) -> [u8; 1]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u8>::from_ne(0x12).to_le_bytes();
assert_eq!(bytes, [0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 1]
pub const fn to_ne_bytes(self) -> [u8; 1]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<u8>::from_ne(0x12).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12]
} else {
[0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 1]) -> Self
pub const fn from_be_bytes(bytes: [u8; 1]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<u8>::from_be_bytes([0x12]);
assert_eq!(value.to_ne(), 0x12);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_u8(input: &mut &[u8]) -> Be<u8> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u8>>());
*input = rest;
Be::<u8>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 1]) -> Self
pub const fn from_le_bytes(bytes: [u8; 1]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<u8>::from_le_bytes([0x12]);
assert_eq!(value.to_ne(), 0x12);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_u8(input: &mut &[u8]) -> Be<u8> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u8>>());
*input = rest;
Be::<u8>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 1]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 1]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<u8>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12]
} else {
[0x12]
});
assert_eq!(value.to_ne(), 0x12);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_u8(input: &mut &[u8]) -> Be<u8> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u8>>());
*input = rest;
Be::<u8>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u8>::from_ne(0x82);
let m = Be::<u8>::from_ne(0xa);
assert_eq!(n.rotate_left(2), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u8>::from_ne(0xa);
let m = Be::<u8>::from_ne(0x82);
assert_eq!(n.rotate_right(2), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12u8);
let m = n.swap_bytes();
assert_eq!(m, Be(0x12));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12u8);
let m = n.reverse_bits();
assert_eq!(m, Be(0x48));
assert_eq!(Be(0), Be(0u8).reverse_bits());
Source§impl Be<u16>
impl Be<u16>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u16>::MIN, Be::<u16>::from_ne(u16::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u16>::MAX, Be::<u16>::from_ne(u16::MAX));
Sourcepub const BITS: u32 = 16u32
pub const BITS: u32 = 16u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u16>::BITS, u16::BITS);
Sourcepub const fn from_ne(n: u16) -> Self
pub const fn from_ne(n: u16) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au16;
if cfg!(target_endian = "big") {
assert_eq!(Be::<u16>::from_ne(n).0, n);
} else {
assert_eq!(Be::<u16>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<u16>) -> Self
pub const fn from_le(n: Le<u16>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Au16;
assert_eq!(Be::<u16>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> u16
pub const fn to_ne(self) -> u16
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au16;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<u16>
pub const fn to_le(self) -> Le<u16>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au16;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 2]
pub const fn to_be_bytes(self) -> [u8; 2]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u16>::from_ne(0x1234).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34]);
Sourcepub const fn to_le_bytes(self) -> [u8; 2]
pub const fn to_le_bytes(self) -> [u8; 2]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u16>::from_ne(0x1234).to_le_bytes();
assert_eq!(bytes, [0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 2]
pub const fn to_ne_bytes(self) -> [u8; 2]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<u16>::from_ne(0x1234).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34]
} else {
[0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 2]) -> Self
pub const fn from_be_bytes(bytes: [u8; 2]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<u16>::from_be_bytes([0x12, 0x34]);
assert_eq!(value.to_ne(), 0x1234);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_u16(input: &mut &[u8]) -> Be<u16> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u16>>());
*input = rest;
Be::<u16>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 2]) -> Self
pub const fn from_le_bytes(bytes: [u8; 2]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<u16>::from_le_bytes([0x34, 0x12]);
assert_eq!(value.to_ne(), 0x1234);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_u16(input: &mut &[u8]) -> Be<u16> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u16>>());
*input = rest;
Be::<u16>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 2]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 2]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<u16>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34]
} else {
[0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x1234);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_u16(input: &mut &[u8]) -> Be<u16> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u16>>());
*input = rest;
Be::<u16>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u16>::from_ne(0xa003);
let m = Be::<u16>::from_ne(0x3a);
assert_eq!(n.rotate_left(4), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u16>::from_ne(0x3a);
let m = Be::<u16>::from_ne(0xa003);
assert_eq!(n.rotate_right(4), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234u16);
let m = n.swap_bytes();
assert_eq!(m, Be(0x3412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234u16);
let m = n.reverse_bits();
assert_eq!(m, Be(0x2c48));
assert_eq!(Be(0), Be(0u16).reverse_bits());
Source§impl Be<u32>
impl Be<u32>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u32>::MIN, Be::<u32>::from_ne(u32::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u32>::MAX, Be::<u32>::from_ne(u32::MAX));
Sourcepub const BITS: u32 = 32u32
pub const BITS: u32 = 32u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u32>::BITS, u32::BITS);
Sourcepub const fn from_ne(n: u32) -> Self
pub const fn from_ne(n: u32) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au32;
if cfg!(target_endian = "big") {
assert_eq!(Be::<u32>::from_ne(n).0, n);
} else {
assert_eq!(Be::<u32>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<u32>) -> Self
pub const fn from_le(n: Le<u32>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Au32;
assert_eq!(Be::<u32>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> u32
pub const fn to_ne(self) -> u32
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au32;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<u32>
pub const fn to_le(self) -> Le<u32>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au32;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 4]
pub const fn to_be_bytes(self) -> [u8; 4]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u32>::from_ne(0x12345678).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
Sourcepub const fn to_le_bytes(self) -> [u8; 4]
pub const fn to_le_bytes(self) -> [u8; 4]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u32>::from_ne(0x12345678).to_le_bytes();
assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 4]
pub const fn to_ne_bytes(self) -> [u8; 4]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<u32>::from_ne(0x12345678).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78]
} else {
[0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 4]) -> Self
pub const fn from_be_bytes(bytes: [u8; 4]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<u32>::from_be_bytes([0x12, 0x34, 0x56, 0x78]);
assert_eq!(value.to_ne(), 0x12345678);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_u32(input: &mut &[u8]) -> Be<u32> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u32>>());
*input = rest;
Be::<u32>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 4]) -> Self
pub const fn from_le_bytes(bytes: [u8; 4]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<u32>::from_le_bytes([0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x12345678);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_u32(input: &mut &[u8]) -> Be<u32> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u32>>());
*input = rest;
Be::<u32>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 4]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 4]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<u32>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78]
} else {
[0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x12345678);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_u32(input: &mut &[u8]) -> Be<u32> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u32>>());
*input = rest;
Be::<u32>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u32>::from_ne(0x10000b3);
let m = Be::<u32>::from_ne(0xb301);
assert_eq!(n.rotate_left(8), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u32>::from_ne(0xb301);
let m = Be::<u32>::from_ne(0x10000b3);
assert_eq!(n.rotate_right(8), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678u32);
let m = n.swap_bytes();
assert_eq!(m, Be(0x78563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678u32);
let m = n.reverse_bits();
assert_eq!(m, Be(0x1e6a2c48));
assert_eq!(Be(0), Be(0u32).reverse_bits());
Source§impl Be<u64>
impl Be<u64>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u64>::MIN, Be::<u64>::from_ne(u64::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u64>::MAX, Be::<u64>::from_ne(u64::MAX));
Sourcepub const BITS: u32 = 64u32
pub const BITS: u32 = 64u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u64>::BITS, u64::BITS);
Sourcepub const fn from_ne(n: u64) -> Self
pub const fn from_ne(n: u64) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au64;
if cfg!(target_endian = "big") {
assert_eq!(Be::<u64>::from_ne(n).0, n);
} else {
assert_eq!(Be::<u64>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<u64>) -> Self
pub const fn from_le(n: Le<u64>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Au64;
assert_eq!(Be::<u64>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> u64
pub const fn to_ne(self) -> u64
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au64;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<u64>
pub const fn to_le(self) -> Le<u64>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au64;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
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.
§Examples
use endian_num::Be;
let bytes = Be::<u64>::from_ne(0x1234567890123456).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
Sourcepub const fn to_le_bytes(self) -> [u8; 8]
pub const fn to_le_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u64>::from_ne(0x1234567890123456).to_le_bytes();
assert_eq!(bytes, [0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 8]
pub const fn to_ne_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<u64>::from_ne(0x1234567890123456).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 8]) -> Self
pub const fn from_be_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<u64>::from_be_bytes([0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_u64(input: &mut &[u8]) -> Be<u64> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u64>>());
*input = rest;
Be::<u64>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 8]) -> Self
pub const fn from_le_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<u64>::from_le_bytes([0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_u64(input: &mut &[u8]) -> Be<u64> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u64>>());
*input = rest;
Be::<u64>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<u64>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_u64(input: &mut &[u8]) -> Be<u64> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u64>>());
*input = rest;
Be::<u64>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u64>::from_ne(0xaa00000000006e1);
let m = Be::<u64>::from_ne(0x6e10aa);
assert_eq!(n.rotate_left(12), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u64>::from_ne(0x6e10aa);
let m = Be::<u64>::from_ne(0xaa00000000006e1);
assert_eq!(n.rotate_right(12), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456u64);
let m = n.swap_bytes();
assert_eq!(m, Be(0x5634129078563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456u64);
let m = n.reverse_bits();
assert_eq!(m, Be(0x6a2c48091e6a2c48));
assert_eq!(Be(0), Be(0u64).reverse_bits());
Source§impl Be<u128>
impl Be<u128>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u128>::MIN, Be::<u128>::from_ne(u128::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u128>::MAX, Be::<u128>::from_ne(u128::MAX));
Sourcepub const BITS: u32 = 128u32
pub const BITS: u32 = 128u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u128>::BITS, u128::BITS);
Sourcepub const fn from_ne(n: u128) -> Self
pub const fn from_ne(n: u128) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au128;
if cfg!(target_endian = "big") {
assert_eq!(Be::<u128>::from_ne(n).0, n);
} else {
assert_eq!(Be::<u128>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<u128>) -> Self
pub const fn from_le(n: Le<u128>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Au128;
assert_eq!(Be::<u128>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> u128
pub const fn to_ne(self) -> u128
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au128;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<u128>
pub const fn to_le(self) -> Le<u128>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Au128;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 16]
pub const fn to_be_bytes(self) -> [u8; 16]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u128>::from_ne(0x12345678901234567890123456789012).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]);
Sourcepub const fn to_le_bytes(self) -> [u8; 16]
pub const fn to_le_bytes(self) -> [u8; 16]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<u128>::from_ne(0x12345678901234567890123456789012).to_le_bytes();
assert_eq!(bytes, [0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 16]
pub const fn to_ne_bytes(self) -> [u8; 16]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<u128>::from_ne(0x12345678901234567890123456789012).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]
} else {
[0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 16]) -> Self
pub const fn from_be_bytes(bytes: [u8; 16]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<u128>::from_be_bytes([0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]);
assert_eq!(value.to_ne(), 0x12345678901234567890123456789012);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_u128(input: &mut &[u8]) -> Be<u128> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u128>>());
*input = rest;
Be::<u128>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 16]) -> Self
pub const fn from_le_bytes(bytes: [u8; 16]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<u128>::from_le_bytes([0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x12345678901234567890123456789012);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_u128(input: &mut &[u8]) -> Be<u128> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u128>>());
*input = rest;
Be::<u128>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 16]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 16]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<u128>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]
} else {
[0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x12345678901234567890123456789012);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_u128(input: &mut &[u8]) -> Be<u128> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<u128>>());
*input = rest;
Be::<u128>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u128>::from_ne(0x13f40000000000000000000000004f76);
let m = Be::<u128>::from_ne(0x4f7613f4);
assert_eq!(n.rotate_left(16), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u128>::from_ne(0x4f7613f4);
let m = Be::<u128>::from_ne(0x13f40000000000000000000000004f76);
assert_eq!(n.rotate_right(16), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678901234567890123456789012u128);
let m = n.swap_bytes();
assert_eq!(m, Be(0x12907856341290785634129078563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678901234567890123456789012u128);
let m = n.reverse_bits();
assert_eq!(m, Be(0x48091e6a2c48091e6a2c48091e6a2c48));
assert_eq!(Be(0), Be(0u128).reverse_bits());
Source§impl Be<usize>
impl Be<usize>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<usize>::MIN, Be::<usize>::from_ne(usize::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<usize>::MAX, Be::<usize>::from_ne(usize::MAX));
Sourcepub const BITS: u32 = 64u32
pub const BITS: u32 = 64u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<usize>::BITS, usize::BITS);
Sourcepub const fn from_ne(n: usize) -> Self
pub const fn from_ne(n: usize) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ausize;
if cfg!(target_endian = "big") {
assert_eq!(Be::<usize>::from_ne(n).0, n);
} else {
assert_eq!(Be::<usize>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<usize>) -> Self
pub const fn from_le(n: Le<usize>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Ausize;
assert_eq!(Be::<usize>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> usize
pub const fn to_ne(self) -> usize
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ausize;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<usize>
pub const fn to_le(self) -> Le<usize>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ausize;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
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.
§Examples
use endian_num::Be;
let bytes = Be::<usize>::from_ne(0x1234567890123456).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
Sourcepub const fn to_le_bytes(self) -> [u8; 8]
pub const fn to_le_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<usize>::from_ne(0x1234567890123456).to_le_bytes();
assert_eq!(bytes, [0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 8]
pub const fn to_ne_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<usize>::from_ne(0x1234567890123456).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 8]) -> Self
pub const fn from_be_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<usize>::from_be_bytes([0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_usize(input: &mut &[u8]) -> Be<usize> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<usize>>());
*input = rest;
Be::<usize>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 8]) -> Self
pub const fn from_le_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<usize>::from_le_bytes([0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_usize(input: &mut &[u8]) -> Be<usize> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<usize>>());
*input = rest;
Be::<usize>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<usize>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_usize(input: &mut &[u8]) -> Be<usize> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<usize>>());
*input = rest;
Be::<usize>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<usize>::from_ne(0xaa00000000006e1);
let m = Be::<usize>::from_ne(0x6e10aa);
assert_eq!(n.rotate_left(12), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<usize>::from_ne(0x6e10aa);
let m = Be::<usize>::from_ne(0xaa00000000006e1);
assert_eq!(n.rotate_right(12), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456usize);
let m = n.swap_bytes();
assert_eq!(m, Be(0x5634129078563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456usize);
let m = n.reverse_bits();
assert_eq!(m, Be(0x6a2c48091e6a2c48));
assert_eq!(Be(0), Be(0usize).reverse_bits());
Source§impl Be<i8>
impl Be<i8>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i8>::MIN, Be::<i8>::from_ne(i8::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i8>::MAX, Be::<i8>::from_ne(i8::MAX));
Sourcepub const BITS: u32 = 8u32
pub const BITS: u32 = 8u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i8>::BITS, i8::BITS);
Sourcepub const fn from_ne(n: i8) -> Self
pub const fn from_ne(n: i8) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai8;
if cfg!(target_endian = "big") {
assert_eq!(Be::<i8>::from_ne(n).0, n);
} else {
assert_eq!(Be::<i8>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<i8>) -> Self
pub const fn from_le(n: Le<i8>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Ai8;
assert_eq!(Be::<i8>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> i8
pub const fn to_ne(self) -> i8
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai8;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<i8>
pub const fn to_le(self) -> Le<i8>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai8;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 1]
pub const fn to_be_bytes(self) -> [u8; 1]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i8>::from_ne(0x12).to_be_bytes();
assert_eq!(bytes, [0x12]);
Sourcepub const fn to_le_bytes(self) -> [u8; 1]
pub const fn to_le_bytes(self) -> [u8; 1]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i8>::from_ne(0x12).to_le_bytes();
assert_eq!(bytes, [0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 1]
pub const fn to_ne_bytes(self) -> [u8; 1]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<i8>::from_ne(0x12).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12]
} else {
[0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 1]) -> Self
pub const fn from_be_bytes(bytes: [u8; 1]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<i8>::from_be_bytes([0x12]);
assert_eq!(value.to_ne(), 0x12);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_i8(input: &mut &[u8]) -> Be<i8> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i8>>());
*input = rest;
Be::<i8>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 1]) -> Self
pub const fn from_le_bytes(bytes: [u8; 1]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<i8>::from_le_bytes([0x12]);
assert_eq!(value.to_ne(), 0x12);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_i8(input: &mut &[u8]) -> Be<i8> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i8>>());
*input = rest;
Be::<i8>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 1]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 1]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<i8>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12]
} else {
[0x12]
});
assert_eq!(value.to_ne(), 0x12);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_i8(input: &mut &[u8]) -> Be<i8> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i8>>());
*input = rest;
Be::<i8>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i8>::from_ne(-0x7e);
let m = Be::<i8>::from_ne(0xa);
assert_eq!(n.rotate_left(2), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i8>::from_ne(0xa);
let m = Be::<i8>::from_ne(-0x7e);
assert_eq!(n.rotate_right(2), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12i8);
let m = n.swap_bytes();
assert_eq!(m, Be(0x12));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12i8);
let m = n.reverse_bits();
assert_eq!(m, Be(0x48));
assert_eq!(Be(0), Be(0i8).reverse_bits());
Source§impl Be<i16>
impl Be<i16>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i16>::MIN, Be::<i16>::from_ne(i16::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i16>::MAX, Be::<i16>::from_ne(i16::MAX));
Sourcepub const BITS: u32 = 16u32
pub const BITS: u32 = 16u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i16>::BITS, i16::BITS);
Sourcepub const fn from_ne(n: i16) -> Self
pub const fn from_ne(n: i16) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai16;
if cfg!(target_endian = "big") {
assert_eq!(Be::<i16>::from_ne(n).0, n);
} else {
assert_eq!(Be::<i16>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<i16>) -> Self
pub const fn from_le(n: Le<i16>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Ai16;
assert_eq!(Be::<i16>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> i16
pub const fn to_ne(self) -> i16
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai16;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<i16>
pub const fn to_le(self) -> Le<i16>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai16;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 2]
pub const fn to_be_bytes(self) -> [u8; 2]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i16>::from_ne(0x1234).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34]);
Sourcepub const fn to_le_bytes(self) -> [u8; 2]
pub const fn to_le_bytes(self) -> [u8; 2]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i16>::from_ne(0x1234).to_le_bytes();
assert_eq!(bytes, [0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 2]
pub const fn to_ne_bytes(self) -> [u8; 2]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<i16>::from_ne(0x1234).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34]
} else {
[0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 2]) -> Self
pub const fn from_be_bytes(bytes: [u8; 2]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<i16>::from_be_bytes([0x12, 0x34]);
assert_eq!(value.to_ne(), 0x1234);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_i16(input: &mut &[u8]) -> Be<i16> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i16>>());
*input = rest;
Be::<i16>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 2]) -> Self
pub const fn from_le_bytes(bytes: [u8; 2]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<i16>::from_le_bytes([0x34, 0x12]);
assert_eq!(value.to_ne(), 0x1234);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_i16(input: &mut &[u8]) -> Be<i16> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i16>>());
*input = rest;
Be::<i16>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 2]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 2]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<i16>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34]
} else {
[0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x1234);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_i16(input: &mut &[u8]) -> Be<i16> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i16>>());
*input = rest;
Be::<i16>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i16>::from_ne(-0x5ffd);
let m = Be::<i16>::from_ne(0x3a);
assert_eq!(n.rotate_left(4), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i16>::from_ne(0x3a);
let m = Be::<i16>::from_ne(-0x5ffd);
assert_eq!(n.rotate_right(4), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234i16);
let m = n.swap_bytes();
assert_eq!(m, Be(0x3412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234i16);
let m = n.reverse_bits();
assert_eq!(m, Be(0x2c48));
assert_eq!(Be(0), Be(0i16).reverse_bits());
Source§impl Be<i32>
impl Be<i32>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i32>::MIN, Be::<i32>::from_ne(i32::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i32>::MAX, Be::<i32>::from_ne(i32::MAX));
Sourcepub const BITS: u32 = 32u32
pub const BITS: u32 = 32u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i32>::BITS, i32::BITS);
Sourcepub const fn from_ne(n: i32) -> Self
pub const fn from_ne(n: i32) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai32;
if cfg!(target_endian = "big") {
assert_eq!(Be::<i32>::from_ne(n).0, n);
} else {
assert_eq!(Be::<i32>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<i32>) -> Self
pub const fn from_le(n: Le<i32>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Ai32;
assert_eq!(Be::<i32>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> i32
pub const fn to_ne(self) -> i32
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai32;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<i32>
pub const fn to_le(self) -> Le<i32>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai32;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 4]
pub const fn to_be_bytes(self) -> [u8; 4]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i32>::from_ne(0x12345678).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78]);
Sourcepub const fn to_le_bytes(self) -> [u8; 4]
pub const fn to_le_bytes(self) -> [u8; 4]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i32>::from_ne(0x12345678).to_le_bytes();
assert_eq!(bytes, [0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 4]
pub const fn to_ne_bytes(self) -> [u8; 4]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<i32>::from_ne(0x12345678).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78]
} else {
[0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 4]) -> Self
pub const fn from_be_bytes(bytes: [u8; 4]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<i32>::from_be_bytes([0x12, 0x34, 0x56, 0x78]);
assert_eq!(value.to_ne(), 0x12345678);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_i32(input: &mut &[u8]) -> Be<i32> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i32>>());
*input = rest;
Be::<i32>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 4]) -> Self
pub const fn from_le_bytes(bytes: [u8; 4]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<i32>::from_le_bytes([0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x12345678);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_i32(input: &mut &[u8]) -> Be<i32> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i32>>());
*input = rest;
Be::<i32>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 4]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 4]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<i32>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78]
} else {
[0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x12345678);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_i32(input: &mut &[u8]) -> Be<i32> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i32>>());
*input = rest;
Be::<i32>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i32>::from_ne(0x10000b3);
let m = Be::<i32>::from_ne(0xb301);
assert_eq!(n.rotate_left(8), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i32>::from_ne(0xb301);
let m = Be::<i32>::from_ne(0x10000b3);
assert_eq!(n.rotate_right(8), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678i32);
let m = n.swap_bytes();
assert_eq!(m, Be(0x78563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678i32);
let m = n.reverse_bits();
assert_eq!(m, Be(0x1e6a2c48));
assert_eq!(Be(0), Be(0i32).reverse_bits());
Source§impl Be<i64>
impl Be<i64>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i64>::MIN, Be::<i64>::from_ne(i64::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i64>::MAX, Be::<i64>::from_ne(i64::MAX));
Sourcepub const BITS: u32 = 64u32
pub const BITS: u32 = 64u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i64>::BITS, i64::BITS);
Sourcepub const fn from_ne(n: i64) -> Self
pub const fn from_ne(n: i64) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai64;
if cfg!(target_endian = "big") {
assert_eq!(Be::<i64>::from_ne(n).0, n);
} else {
assert_eq!(Be::<i64>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<i64>) -> Self
pub const fn from_le(n: Le<i64>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Ai64;
assert_eq!(Be::<i64>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> i64
pub const fn to_ne(self) -> i64
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai64;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<i64>
pub const fn to_le(self) -> Le<i64>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai64;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
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.
§Examples
use endian_num::Be;
let bytes = Be::<i64>::from_ne(0x1234567890123456).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
Sourcepub const fn to_le_bytes(self) -> [u8; 8]
pub const fn to_le_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i64>::from_ne(0x1234567890123456).to_le_bytes();
assert_eq!(bytes, [0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 8]
pub const fn to_ne_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<i64>::from_ne(0x1234567890123456).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 8]) -> Self
pub const fn from_be_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<i64>::from_be_bytes([0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_i64(input: &mut &[u8]) -> Be<i64> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i64>>());
*input = rest;
Be::<i64>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 8]) -> Self
pub const fn from_le_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<i64>::from_le_bytes([0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_i64(input: &mut &[u8]) -> Be<i64> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i64>>());
*input = rest;
Be::<i64>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<i64>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_i64(input: &mut &[u8]) -> Be<i64> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i64>>());
*input = rest;
Be::<i64>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i64>::from_ne(0xaa00000000006e1);
let m = Be::<i64>::from_ne(0x6e10aa);
assert_eq!(n.rotate_left(12), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i64>::from_ne(0x6e10aa);
let m = Be::<i64>::from_ne(0xaa00000000006e1);
assert_eq!(n.rotate_right(12), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456i64);
let m = n.swap_bytes();
assert_eq!(m, Be(0x5634129078563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456i64);
let m = n.reverse_bits();
assert_eq!(m, Be(0x6a2c48091e6a2c48));
assert_eq!(Be(0), Be(0i64).reverse_bits());
Source§impl Be<i128>
impl Be<i128>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i128>::MIN, Be::<i128>::from_ne(i128::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i128>::MAX, Be::<i128>::from_ne(i128::MAX));
Sourcepub const BITS: u32 = 128u32
pub const BITS: u32 = 128u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i128>::BITS, i128::BITS);
Sourcepub const fn from_ne(n: i128) -> Self
pub const fn from_ne(n: i128) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai128;
if cfg!(target_endian = "big") {
assert_eq!(Be::<i128>::from_ne(n).0, n);
} else {
assert_eq!(Be::<i128>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<i128>) -> Self
pub const fn from_le(n: Le<i128>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Ai128;
assert_eq!(Be::<i128>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> i128
pub const fn to_ne(self) -> i128
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai128;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<i128>
pub const fn to_le(self) -> Le<i128>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Ai128;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
Sourcepub const fn to_be_bytes(self) -> [u8; 16]
pub const fn to_be_bytes(self) -> [u8; 16]
Return the memory representation of this integer as a byte array in big-endian (network) byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i128>::from_ne(0x12345678901234567890123456789012).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]);
Sourcepub const fn to_le_bytes(self) -> [u8; 16]
pub const fn to_le_bytes(self) -> [u8; 16]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<i128>::from_ne(0x12345678901234567890123456789012).to_le_bytes();
assert_eq!(bytes, [0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 16]
pub const fn to_ne_bytes(self) -> [u8; 16]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<i128>::from_ne(0x12345678901234567890123456789012).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]
} else {
[0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 16]) -> Self
pub const fn from_be_bytes(bytes: [u8; 16]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<i128>::from_be_bytes([0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]);
assert_eq!(value.to_ne(), 0x12345678901234567890123456789012);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_i128(input: &mut &[u8]) -> Be<i128> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i128>>());
*input = rest;
Be::<i128>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 16]) -> Self
pub const fn from_le_bytes(bytes: [u8; 16]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<i128>::from_le_bytes([0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x12345678901234567890123456789012);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_i128(input: &mut &[u8]) -> Be<i128> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i128>>());
*input = rest;
Be::<i128>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 16]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 16]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<i128>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12]
} else {
[0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x12345678901234567890123456789012);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_i128(input: &mut &[u8]) -> Be<i128> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<i128>>());
*input = rest;
Be::<i128>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i128>::from_ne(0x13f40000000000000000000000004f76);
let m = Be::<i128>::from_ne(0x4f7613f4);
assert_eq!(n.rotate_left(16), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i128>::from_ne(0x4f7613f4);
let m = Be::<i128>::from_ne(0x13f40000000000000000000000004f76);
assert_eq!(n.rotate_right(16), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678901234567890123456789012i128);
let m = n.swap_bytes();
assert_eq!(m, Be(0x12907856341290785634129078563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x12345678901234567890123456789012i128);
let m = n.reverse_bits();
assert_eq!(m, Be(0x48091e6a2c48091e6a2c48091e6a2c48));
assert_eq!(Be(0), Be(0i128).reverse_bits());
Source§impl Be<isize>
impl Be<isize>
Sourcepub const MIN: Self
pub const MIN: Self
The smallest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<isize>::MIN, Be::<isize>::from_ne(isize::MIN));
Sourcepub const MAX: Self
pub const MAX: Self
The largest value that can be represented by this integer type.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<isize>::MAX, Be::<isize>::from_ne(isize::MAX));
Sourcepub const BITS: u32 = 64u32
pub const BITS: u32 = 64u32
The size of this integer type in bits.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<isize>::BITS, isize::BITS);
Sourcepub const fn from_ne(n: isize) -> Self
pub const fn from_ne(n: isize) -> Self
Creates a new big-endian integer from a native-endian integer.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Aisize;
if cfg!(target_endian = "big") {
assert_eq!(Be::<isize>::from_ne(n).0, n);
} else {
assert_eq!(Be::<isize>::from_ne(n).0, n.swap_bytes());
}
Sourcepub const fn from_le(n: Le<isize>) -> Self
pub const fn from_le(n: Le<isize>) -> Self
Creates a new big-endian integer from a little-endian integer.
This always swaps the bytes.
§Examples
use endian_num::{Be, Le};
let n = 0x1Aisize;
assert_eq!(Be::<isize>::from_le(Le(n)).0, n.swap_bytes());
Sourcepub const fn to_ne(self) -> isize
pub const fn to_ne(self) -> isize
Returns the integer in native-endian byte order.
On big endian, this is a no-op. On little endian, the bytes are swapped.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Aisize;
if cfg!(target_endian = "big") {
assert_eq!(Be(n).to_ne(), n);
} else {
assert_eq!(Be(n).to_ne(), n.swap_bytes());
}
Sourcepub const fn to_le(self) -> Le<isize>
pub const fn to_le(self) -> Le<isize>
Returns the integer in little-endian byte order.
This always swaps the bytes.
§Examples
Basic usage:
use endian_num::Be;
let n = 0x1Aisize;
assert_eq!(Be(n).to_le().0, n.swap_bytes());
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.
§Examples
use endian_num::Be;
let bytes = Be::<isize>::from_ne(0x1234567890123456).to_be_bytes();
assert_eq!(bytes, [0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
Sourcepub const fn to_le_bytes(self) -> [u8; 8]
pub const fn to_le_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in little-endian byte order.
§Examples
use endian_num::Be;
let bytes = Be::<isize>::from_ne(0x1234567890123456).to_le_bytes();
assert_eq!(bytes, [0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
Sourcepub const fn to_ne_bytes(self) -> [u8; 8]
pub const fn to_ne_bytes(self) -> [u8; 8]
Return the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes
or to_le_bytes
, as appropriate,
instead.
§Examples
use endian_num::Be;
let bytes = Be::<isize>::from_ne(0x1234567890123456).to_ne_bytes();
assert_eq!(
bytes,
if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
}
);
Sourcepub const fn from_be_bytes(bytes: [u8; 8]) -> Self
pub const fn from_be_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in big endian.
§Examples
use endian_num::Be;
let value = Be::<isize>::from_be_bytes([0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_be_isize(input: &mut &[u8]) -> Be<isize> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<isize>>());
*input = rest;
Be::<isize>::from_be_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_le_bytes(bytes: [u8; 8]) -> Self
pub const fn from_le_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its representation as a byte array in little endian.
§Examples
use endian_num::Be;
let value = Be::<isize>::from_le_bytes([0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_le_isize(input: &mut &[u8]) -> Be<isize> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<isize>>());
*input = rest;
Be::<isize>::from_le_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
Create a big endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes
or from_le_bytes
, as
appropriate instead.
§Examples
use endian_num::Be;
let value = Be::<isize>::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value.to_ne(), 0x1234567890123456);
When starting from a slice rather than an array, fallible conversion APIs can be used:
use endian_num::Be;
fn read_ne_isize(input: &mut &[u8]) -> Be<isize> {
let (int_bytes, rest) = input.split_at(std::mem::size_of::<Be<isize>>());
*input = rest;
Be::<isize>::from_ne_bytes(int_bytes.try_into().unwrap())
}
Sourcepub const fn rotate_left(self, n: u32) -> Self
pub const fn rotate_left(self, n: u32) -> Self
Shifts the bits to the left by a specified amount, n
,
wrapping the truncated bits to the end of the resulting integer.
Please note this isn’t the same operation as the <<
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<isize>::from_ne(0xaa00000000006e1);
let m = Be::<isize>::from_ne(0x6e10aa);
assert_eq!(n.rotate_left(12), m);
Sourcepub const fn rotate_right(self, n: u32) -> Self
pub const fn rotate_right(self, n: u32) -> Self
Shifts the bits to the right by a specified amount, n
,
wrapping the truncated bits to the beginning of the resulting
integer.
Please note this isn’t the same operation as the >>
shifting operator!
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<isize>::from_ne(0x6e10aa);
let m = Be::<isize>::from_ne(0xaa00000000006e1);
assert_eq!(n.rotate_right(12), m);
Sourcepub const fn swap_bytes(self) -> Self
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456isize);
let m = n.swap_bytes();
assert_eq!(m, Be(0x5634129078563412));
Sourcepub const fn reverse_bits(self) -> Self
pub const fn reverse_bits(self) -> Self
Reverses the order of bits in the integer.
The least significant bit becomes the most significant bit, second least-significant bit becomes second most-significant bit, etc.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0x1234567890123456isize);
let m = n.reverse_bits();
assert_eq!(m, Be(0x6a2c48091e6a2c48));
assert_eq!(Be(0), Be(0isize).reverse_bits());
Source§impl Be<i8>
impl Be<i8>
Sourcepub const fn signum(self) -> Self
pub const fn signum(self) -> Self
Returns a number representing sign of self
.
0
if the number is zero1
if the number is positive-1
if the number is negative
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i8>::from_ne(10).signum().to_ne(), 1);
assert_eq!(Be::<i8>::from_ne(0).signum().to_ne(), 0);
assert_eq!(Be::<i8>::from_ne(-10).signum().to_ne(), -1);
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true
if self
is positive and false
if the number is zero or
negative.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i8>::from_ne(10).is_positive());
assert!(!Be::<i8>::from_ne(-10).is_positive());
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true
if self
is negative and false
if the number is zero or
positive.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i8>::from_ne(-10).is_negative());
assert!(!Be::<i8>::from_ne(10).is_negative());
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b100_0000i8);
assert_eq!(n.count_ones(), 1);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i8>::MAX.count_zeros(), 1);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i8>::from_ne(-1);
assert_eq!(n.leading_zeros(), 0);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i8>::from_ne(-4);
assert_eq!(n.trailing_zeros(), 2);
Source§impl Be<i16>
impl Be<i16>
Sourcepub const fn signum(self) -> Self
pub const fn signum(self) -> Self
Returns a number representing sign of self
.
0
if the number is zero1
if the number is positive-1
if the number is negative
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i16>::from_ne(10).signum().to_ne(), 1);
assert_eq!(Be::<i16>::from_ne(0).signum().to_ne(), 0);
assert_eq!(Be::<i16>::from_ne(-10).signum().to_ne(), -1);
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true
if self
is positive and false
if the number is zero or
negative.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i16>::from_ne(10).is_positive());
assert!(!Be::<i16>::from_ne(-10).is_positive());
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true
if self
is negative and false
if the number is zero or
positive.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i16>::from_ne(-10).is_negative());
assert!(!Be::<i16>::from_ne(10).is_negative());
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b100_0000i16);
assert_eq!(n.count_ones(), 1);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i16>::MAX.count_zeros(), 1);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i16>::from_ne(-1);
assert_eq!(n.leading_zeros(), 0);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i16>::from_ne(-4);
assert_eq!(n.trailing_zeros(), 2);
Source§impl Be<i32>
impl Be<i32>
Sourcepub const fn signum(self) -> Self
pub const fn signum(self) -> Self
Returns a number representing sign of self
.
0
if the number is zero1
if the number is positive-1
if the number is negative
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i32>::from_ne(10).signum().to_ne(), 1);
assert_eq!(Be::<i32>::from_ne(0).signum().to_ne(), 0);
assert_eq!(Be::<i32>::from_ne(-10).signum().to_ne(), -1);
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true
if self
is positive and false
if the number is zero or
negative.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i32>::from_ne(10).is_positive());
assert!(!Be::<i32>::from_ne(-10).is_positive());
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true
if self
is negative and false
if the number is zero or
positive.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i32>::from_ne(-10).is_negative());
assert!(!Be::<i32>::from_ne(10).is_negative());
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b100_0000i32);
assert_eq!(n.count_ones(), 1);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i32>::MAX.count_zeros(), 1);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i32>::from_ne(-1);
assert_eq!(n.leading_zeros(), 0);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i32>::from_ne(-4);
assert_eq!(n.trailing_zeros(), 2);
Source§impl Be<i64>
impl Be<i64>
Sourcepub const fn signum(self) -> Self
pub const fn signum(self) -> Self
Returns a number representing sign of self
.
0
if the number is zero1
if the number is positive-1
if the number is negative
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i64>::from_ne(10).signum().to_ne(), 1);
assert_eq!(Be::<i64>::from_ne(0).signum().to_ne(), 0);
assert_eq!(Be::<i64>::from_ne(-10).signum().to_ne(), -1);
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true
if self
is positive and false
if the number is zero or
negative.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i64>::from_ne(10).is_positive());
assert!(!Be::<i64>::from_ne(-10).is_positive());
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true
if self
is negative and false
if the number is zero or
positive.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i64>::from_ne(-10).is_negative());
assert!(!Be::<i64>::from_ne(10).is_negative());
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b100_0000i64);
assert_eq!(n.count_ones(), 1);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i64>::MAX.count_zeros(), 1);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i64>::from_ne(-1);
assert_eq!(n.leading_zeros(), 0);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i64>::from_ne(-4);
assert_eq!(n.trailing_zeros(), 2);
Source§impl Be<i128>
impl Be<i128>
Sourcepub const fn signum(self) -> Self
pub const fn signum(self) -> Self
Returns a number representing sign of self
.
0
if the number is zero1
if the number is positive-1
if the number is negative
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i128>::from_ne(10).signum().to_ne(), 1);
assert_eq!(Be::<i128>::from_ne(0).signum().to_ne(), 0);
assert_eq!(Be::<i128>::from_ne(-10).signum().to_ne(), -1);
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true
if self
is positive and false
if the number is zero or
negative.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i128>::from_ne(10).is_positive());
assert!(!Be::<i128>::from_ne(-10).is_positive());
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true
if self
is negative and false
if the number is zero or
positive.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<i128>::from_ne(-10).is_negative());
assert!(!Be::<i128>::from_ne(10).is_negative());
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b100_0000i128);
assert_eq!(n.count_ones(), 1);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<i128>::MAX.count_zeros(), 1);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i128>::from_ne(-1);
assert_eq!(n.leading_zeros(), 0);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<i128>::from_ne(-4);
assert_eq!(n.trailing_zeros(), 2);
Source§impl Be<isize>
impl Be<isize>
Sourcepub const fn abs(self) -> Self
pub const fn abs(self) -> Self
Computes the absolute value of self.
See isize::abs
for documentation on overflow behavior.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<isize>::from_ne(10).abs(), Be::<isize>::from_ne(10));
assert_eq!(Be::<isize>::from_ne(-10).abs(), Be::<isize>::from_ne(10));
Sourcepub const fn signum(self) -> Self
pub const fn signum(self) -> Self
Returns a number representing sign of self
.
0
if the number is zero1
if the number is positive-1
if the number is negative
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<isize>::from_ne(10).signum().to_ne(), 1);
assert_eq!(Be::<isize>::from_ne(0).signum().to_ne(), 0);
assert_eq!(Be::<isize>::from_ne(-10).signum().to_ne(), -1);
Sourcepub const fn is_positive(self) -> bool
pub const fn is_positive(self) -> bool
Returns true
if self
is positive and false
if the number is zero or
negative.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<isize>::from_ne(10).is_positive());
assert!(!Be::<isize>::from_ne(-10).is_positive());
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true
if self
is negative and false
if the number is zero or
positive.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<isize>::from_ne(-10).is_negative());
assert!(!Be::<isize>::from_ne(10).is_negative());
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b100_0000isize);
assert_eq!(n.count_ones(), 1);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<isize>::MAX.count_zeros(), 1);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<isize>::from_ne(-1);
assert_eq!(n.leading_zeros(), 0);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<isize>::from_ne(-4);
assert_eq!(n.trailing_zeros(), 2);
Source§impl Be<u8>
impl Be<u8>
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b01001100u8);
assert_eq!(n.count_ones(), 3);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u8>::MAX.count_zeros(), 0);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u8>::from_ne(u8::MAX >> 2);
assert_eq!(n.leading_zeros(), 2);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u8>::from_ne(0b0101000);
assert_eq!(n.trailing_zeros(), 3);
Sourcepub const fn is_power_of_two(self) -> bool
pub const fn is_power_of_two(self) -> bool
Returns true
if and only if self == 2^k
for some k
.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<u8>::from_ne(16).is_power_of_two());
assert!(!Be::<u8>::from_ne(10).is_power_of_two());
Source§impl Be<u16>
impl Be<u16>
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b01001100u16);
assert_eq!(n.count_ones(), 3);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u16>::MAX.count_zeros(), 0);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u16>::from_ne(u16::MAX >> 2);
assert_eq!(n.leading_zeros(), 2);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u16>::from_ne(0b0101000);
assert_eq!(n.trailing_zeros(), 3);
Sourcepub const fn is_power_of_two(self) -> bool
pub const fn is_power_of_two(self) -> bool
Returns true
if and only if self == 2^k
for some k
.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<u16>::from_ne(16).is_power_of_two());
assert!(!Be::<u16>::from_ne(10).is_power_of_two());
Source§impl Be<u32>
impl Be<u32>
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b01001100u32);
assert_eq!(n.count_ones(), 3);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u32>::MAX.count_zeros(), 0);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u32>::from_ne(u32::MAX >> 2);
assert_eq!(n.leading_zeros(), 2);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u32>::from_ne(0b0101000);
assert_eq!(n.trailing_zeros(), 3);
Sourcepub const fn is_power_of_two(self) -> bool
pub const fn is_power_of_two(self) -> bool
Returns true
if and only if self == 2^k
for some k
.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<u32>::from_ne(16).is_power_of_two());
assert!(!Be::<u32>::from_ne(10).is_power_of_two());
Source§impl Be<u64>
impl Be<u64>
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b01001100u64);
assert_eq!(n.count_ones(), 3);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u64>::MAX.count_zeros(), 0);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u64>::from_ne(u64::MAX >> 2);
assert_eq!(n.leading_zeros(), 2);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u64>::from_ne(0b0101000);
assert_eq!(n.trailing_zeros(), 3);
Sourcepub const fn is_power_of_two(self) -> bool
pub const fn is_power_of_two(self) -> bool
Returns true
if and only if self == 2^k
for some k
.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<u64>::from_ne(16).is_power_of_two());
assert!(!Be::<u64>::from_ne(10).is_power_of_two());
Source§impl Be<u128>
impl Be<u128>
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b01001100u128);
assert_eq!(n.count_ones(), 3);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<u128>::MAX.count_zeros(), 0);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u128>::from_ne(u128::MAX >> 2);
assert_eq!(n.leading_zeros(), 2);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<u128>::from_ne(0b0101000);
assert_eq!(n.trailing_zeros(), 3);
Sourcepub const fn is_power_of_two(self) -> bool
pub const fn is_power_of_two(self) -> bool
Returns true
if and only if self == 2^k
for some k
.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<u128>::from_ne(16).is_power_of_two());
assert!(!Be::<u128>::from_ne(10).is_power_of_two());
Source§impl Be<usize>
impl Be<usize>
Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be(0b01001100usize);
assert_eq!(n.count_ones(), 3);
Sourcepub const fn count_zeros(self) -> u32
pub const fn count_zeros(self) -> u32
Returns the number of zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
assert_eq!(Be::<usize>::MAX.count_zeros(), 0);
Sourcepub const fn leading_zeros(self) -> u32
pub const fn leading_zeros(self) -> u32
Returns the number of leading zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<usize>::from_ne(usize::MAX >> 2);
assert_eq!(n.leading_zeros(), 2);
Sourcepub const fn trailing_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self
.
§Examples
Basic usage:
use endian_num::Be;
let n = Be::<usize>::from_ne(0b0101000);
assert_eq!(n.trailing_zeros(), 3);
Sourcepub const fn is_power_of_two(self) -> bool
pub const fn is_power_of_two(self) -> bool
Returns true
if and only if self == 2^k
for some k
.
§Examples
Basic usage:
use endian_num::Be;
assert!(Be::<usize>::from_ne(16).is_power_of_two());
assert!(!Be::<usize>::from_ne(10).is_power_of_two());
Trait Implementations§
Source§impl AddAssign for Be<i128>
impl AddAssign for Be<i128>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<i16>
impl AddAssign for Be<i16>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<i32>
impl AddAssign for Be<i32>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<i64>
impl AddAssign for Be<i64>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<i8>
impl AddAssign for Be<i8>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<isize>
impl AddAssign for Be<isize>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<u128>
impl AddAssign for Be<u128>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<u16>
impl AddAssign for Be<u16>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<u32>
impl AddAssign for Be<u32>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<u64>
impl AddAssign for Be<u64>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<u8>
impl AddAssign for Be<u8>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl AddAssign for Be<usize>
impl AddAssign for Be<usize>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl BitAndAssign for Be<i128>
impl BitAndAssign for Be<i128>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<i16>
impl BitAndAssign for Be<i16>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<i32>
impl BitAndAssign for Be<i32>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<i64>
impl BitAndAssign for Be<i64>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<i8>
impl BitAndAssign for Be<i8>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<isize>
impl BitAndAssign for Be<isize>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<u128>
impl BitAndAssign for Be<u128>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<u16>
impl BitAndAssign for Be<u16>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<u32>
impl BitAndAssign for Be<u32>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<u64>
impl BitAndAssign for Be<u64>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<u8>
impl BitAndAssign for Be<u8>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitAndAssign for Be<usize>
impl BitAndAssign for Be<usize>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOrAssign for Be<i128>
impl BitOrAssign for Be<i128>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<i16>
impl BitOrAssign for Be<i16>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<i32>
impl BitOrAssign for Be<i32>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<i64>
impl BitOrAssign for Be<i64>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<i8>
impl BitOrAssign for Be<i8>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<isize>
impl BitOrAssign for Be<isize>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<u128>
impl BitOrAssign for Be<u128>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<u16>
impl BitOrAssign for Be<u16>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<u32>
impl BitOrAssign for Be<u32>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<u64>
impl BitOrAssign for Be<u64>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<u8>
impl BitOrAssign for Be<u8>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitOrAssign for Be<usize>
impl BitOrAssign for Be<usize>
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXorAssign for Be<i128>
impl BitXorAssign for Be<i128>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<i16>
impl BitXorAssign for Be<i16>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<i32>
impl BitXorAssign for Be<i32>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<i64>
impl BitXorAssign for Be<i64>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<i8>
impl BitXorAssign for Be<i8>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<isize>
impl BitXorAssign for Be<isize>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<u128>
impl BitXorAssign for Be<u128>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<u16>
impl BitXorAssign for Be<u16>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<u32>
impl BitXorAssign for Be<u32>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<u64>
impl BitXorAssign for Be<u64>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<u8>
impl BitXorAssign for Be<u8>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl BitXorAssign for Be<usize>
impl BitXorAssign for Be<usize>
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl DivAssign for Be<i128>
impl DivAssign for Be<i128>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<i16>
impl DivAssign for Be<i16>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<i32>
impl DivAssign for Be<i32>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<i64>
impl DivAssign for Be<i64>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<i8>
impl DivAssign for Be<i8>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<isize>
impl DivAssign for Be<isize>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<u128>
impl DivAssign for Be<u128>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<u16>
impl DivAssign for Be<u16>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<u32>
impl DivAssign for Be<u32>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<u64>
impl DivAssign for Be<u64>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<u8>
impl DivAssign for Be<u8>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl DivAssign for Be<usize>
impl DivAssign for Be<usize>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
/=
operation. Read moreSource§impl<T> FromBytes for Be<T>where
T: FromBytes,
impl<T> FromBytes for Be<T>where
T: FromBytes,
Source§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
Source§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
Source§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self
. Read moreSource§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl<T> IntoBytes for Be<T>where
T: IntoBytes,
impl<T> IntoBytes for Be<T>where
T: IntoBytes,
Source§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl<T> KnownLayout for Be<T>where
Self: Sized,
impl<T> KnownLayout for Be<T>where
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self
. Read moreSource§impl MulAssign for Be<i128>
impl MulAssign for Be<i128>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<i16>
impl MulAssign for Be<i16>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<i32>
impl MulAssign for Be<i32>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<i64>
impl MulAssign for Be<i64>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<i8>
impl MulAssign for Be<i8>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<isize>
impl MulAssign for Be<isize>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<u128>
impl MulAssign for Be<u128>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<u16>
impl MulAssign for Be<u16>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<u32>
impl MulAssign for Be<u32>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<u64>
impl MulAssign for Be<u64>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<u8>
impl MulAssign for Be<u8>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl MulAssign for Be<usize>
impl MulAssign for Be<usize>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl Ord for Be<i128>
impl Ord for Be<i128>
Source§impl Ord for Be<i16>
impl Ord for Be<i16>
Source§impl Ord for Be<i32>
impl Ord for Be<i32>
Source§impl Ord for Be<i64>
impl Ord for Be<i64>
Source§impl Ord for Be<i8>
impl Ord for Be<i8>
Source§impl Ord for Be<isize>
impl Ord for Be<isize>
Source§impl Ord for Be<u128>
impl Ord for Be<u128>
Source§impl Ord for Be<u16>
impl Ord for Be<u16>
Source§impl Ord for Be<u32>
impl Ord for Be<u32>
Source§impl Ord for Be<u64>
impl Ord for Be<u64>
Source§impl Ord for Be<u8>
impl Ord for Be<u8>
Source§impl Ord for Be<usize>
impl Ord for Be<usize>
Source§impl PartialOrd for Be<i128>
impl PartialOrd for Be<i128>
Source§impl PartialOrd for Be<i16>
impl PartialOrd for Be<i16>
Source§impl PartialOrd for Be<i32>
impl PartialOrd for Be<i32>
Source§impl PartialOrd for Be<i64>
impl PartialOrd for Be<i64>
Source§impl PartialOrd for Be<i8>
impl PartialOrd for Be<i8>
Source§impl PartialOrd for Be<isize>
impl PartialOrd for Be<isize>
Source§impl PartialOrd for Be<u128>
impl PartialOrd for Be<u128>
Source§impl PartialOrd for Be<u16>
impl PartialOrd for Be<u16>
Source§impl PartialOrd for Be<u32>
impl PartialOrd for Be<u32>
Source§impl PartialOrd for Be<u64>
impl PartialOrd for Be<u64>
Source§impl PartialOrd for Be<u8>
impl PartialOrd for Be<u8>
Source§impl PartialOrd for Be<usize>
impl PartialOrd for Be<usize>
Source§impl RemAssign for Be<i128>
impl RemAssign for Be<i128>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<i16>
impl RemAssign for Be<i16>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<i32>
impl RemAssign for Be<i32>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<i64>
impl RemAssign for Be<i64>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<i8>
impl RemAssign for Be<i8>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<isize>
impl RemAssign for Be<isize>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<u128>
impl RemAssign for Be<u128>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<u16>
impl RemAssign for Be<u16>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<u32>
impl RemAssign for Be<u32>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<u64>
impl RemAssign for Be<u64>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<u8>
impl RemAssign for Be<u8>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl RemAssign for Be<usize>
impl RemAssign for Be<usize>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
%=
operation. Read moreSource§impl ShlAssign<&i128> for Be<i128>
impl ShlAssign<&i128> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<i16>
impl ShlAssign<&i128> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<i32>
impl ShlAssign<&i128> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<i64>
impl ShlAssign<&i128> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<i8>
impl ShlAssign<&i128> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<isize>
impl ShlAssign<&i128> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<u128>
impl ShlAssign<&i128> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<u16>
impl ShlAssign<&i128> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<u32>
impl ShlAssign<&i128> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<u64>
impl ShlAssign<&i128> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<u8>
impl ShlAssign<&i128> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i128> for Be<usize>
impl ShlAssign<&i128> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &i128)
fn shl_assign(&mut self, rhs: &i128)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<i128>
impl ShlAssign<&i16> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<i16>
impl ShlAssign<&i16> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<i32>
impl ShlAssign<&i16> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<i64>
impl ShlAssign<&i16> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<i8>
impl ShlAssign<&i16> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<isize>
impl ShlAssign<&i16> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<u128>
impl ShlAssign<&i16> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<u16>
impl ShlAssign<&i16> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<u32>
impl ShlAssign<&i16> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<u64>
impl ShlAssign<&i16> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<u8>
impl ShlAssign<&i16> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i16> for Be<usize>
impl ShlAssign<&i16> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &i16)
fn shl_assign(&mut self, rhs: &i16)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<i128>
impl ShlAssign<&i32> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<i16>
impl ShlAssign<&i32> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<i32>
impl ShlAssign<&i32> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<i64>
impl ShlAssign<&i32> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<i8>
impl ShlAssign<&i32> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<isize>
impl ShlAssign<&i32> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<u128>
impl ShlAssign<&i32> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<u16>
impl ShlAssign<&i32> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<u32>
impl ShlAssign<&i32> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<u64>
impl ShlAssign<&i32> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<u8>
impl ShlAssign<&i32> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i32> for Be<usize>
impl ShlAssign<&i32> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &i32)
fn shl_assign(&mut self, rhs: &i32)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<i128>
impl ShlAssign<&i64> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<i16>
impl ShlAssign<&i64> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<i32>
impl ShlAssign<&i64> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<i64>
impl ShlAssign<&i64> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<i8>
impl ShlAssign<&i64> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<isize>
impl ShlAssign<&i64> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<u128>
impl ShlAssign<&i64> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<u16>
impl ShlAssign<&i64> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<u32>
impl ShlAssign<&i64> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<u64>
impl ShlAssign<&i64> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<u8>
impl ShlAssign<&i64> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i64> for Be<usize>
impl ShlAssign<&i64> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &i64)
fn shl_assign(&mut self, rhs: &i64)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<i128>
impl ShlAssign<&i8> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<i16>
impl ShlAssign<&i8> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<i32>
impl ShlAssign<&i8> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<i64>
impl ShlAssign<&i8> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<i8>
impl ShlAssign<&i8> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<isize>
impl ShlAssign<&i8> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<u128>
impl ShlAssign<&i8> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<u16>
impl ShlAssign<&i8> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<u32>
impl ShlAssign<&i8> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<u64>
impl ShlAssign<&i8> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<u8>
impl ShlAssign<&i8> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&i8> for Be<usize>
impl ShlAssign<&i8> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &i8)
fn shl_assign(&mut self, rhs: &i8)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<i128>
impl ShlAssign<&isize> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<i16>
impl ShlAssign<&isize> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<i32>
impl ShlAssign<&isize> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<i64>
impl ShlAssign<&isize> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<i8>
impl ShlAssign<&isize> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<isize>
impl ShlAssign<&isize> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<u128>
impl ShlAssign<&isize> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<u16>
impl ShlAssign<&isize> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<u32>
impl ShlAssign<&isize> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<u64>
impl ShlAssign<&isize> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<u8>
impl ShlAssign<&isize> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&isize> for Be<usize>
impl ShlAssign<&isize> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &isize)
fn shl_assign(&mut self, rhs: &isize)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<i128>
impl ShlAssign<&u128> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<i16>
impl ShlAssign<&u128> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<i32>
impl ShlAssign<&u128> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<i64>
impl ShlAssign<&u128> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<i8>
impl ShlAssign<&u128> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<isize>
impl ShlAssign<&u128> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<u128>
impl ShlAssign<&u128> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<u16>
impl ShlAssign<&u128> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<u32>
impl ShlAssign<&u128> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<u64>
impl ShlAssign<&u128> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<u8>
impl ShlAssign<&u128> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u128> for Be<usize>
impl ShlAssign<&u128> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &u128)
fn shl_assign(&mut self, rhs: &u128)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<i128>
impl ShlAssign<&u16> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<i16>
impl ShlAssign<&u16> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<i32>
impl ShlAssign<&u16> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<i64>
impl ShlAssign<&u16> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<i8>
impl ShlAssign<&u16> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<isize>
impl ShlAssign<&u16> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<u128>
impl ShlAssign<&u16> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<u16>
impl ShlAssign<&u16> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<u32>
impl ShlAssign<&u16> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<u64>
impl ShlAssign<&u16> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<u8>
impl ShlAssign<&u16> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u16> for Be<usize>
impl ShlAssign<&u16> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &u16)
fn shl_assign(&mut self, rhs: &u16)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<i128>
impl ShlAssign<&u32> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<i16>
impl ShlAssign<&u32> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<i32>
impl ShlAssign<&u32> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<i64>
impl ShlAssign<&u32> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<i8>
impl ShlAssign<&u32> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<isize>
impl ShlAssign<&u32> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<u128>
impl ShlAssign<&u32> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<u16>
impl ShlAssign<&u32> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<u32>
impl ShlAssign<&u32> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<u64>
impl ShlAssign<&u32> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<u8>
impl ShlAssign<&u32> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u32> for Be<usize>
impl ShlAssign<&u32> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &u32)
fn shl_assign(&mut self, rhs: &u32)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<i128>
impl ShlAssign<&u64> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<i16>
impl ShlAssign<&u64> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<i32>
impl ShlAssign<&u64> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<i64>
impl ShlAssign<&u64> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<i8>
impl ShlAssign<&u64> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<isize>
impl ShlAssign<&u64> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<u128>
impl ShlAssign<&u64> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<u16>
impl ShlAssign<&u64> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<u32>
impl ShlAssign<&u64> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<u64>
impl ShlAssign<&u64> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<u8>
impl ShlAssign<&u64> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u64> for Be<usize>
impl ShlAssign<&u64> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &u64)
fn shl_assign(&mut self, rhs: &u64)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<i128>
impl ShlAssign<&u8> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<i16>
impl ShlAssign<&u8> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<i32>
impl ShlAssign<&u8> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<i64>
impl ShlAssign<&u8> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<i8>
impl ShlAssign<&u8> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<isize>
impl ShlAssign<&u8> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<u128>
impl ShlAssign<&u8> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<u16>
impl ShlAssign<&u8> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<u32>
impl ShlAssign<&u8> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<u64>
impl ShlAssign<&u8> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<u8>
impl ShlAssign<&u8> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&u8> for Be<usize>
impl ShlAssign<&u8> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &u8)
fn shl_assign(&mut self, rhs: &u8)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<i128>
impl ShlAssign<&usize> for Be<i128>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<i16>
impl ShlAssign<&usize> for Be<i16>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<i32>
impl ShlAssign<&usize> for Be<i32>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<i64>
impl ShlAssign<&usize> for Be<i64>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<i8>
impl ShlAssign<&usize> for Be<i8>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<isize>
impl ShlAssign<&usize> for Be<isize>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<u128>
impl ShlAssign<&usize> for Be<u128>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<u16>
impl ShlAssign<&usize> for Be<u16>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<u32>
impl ShlAssign<&usize> for Be<u32>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<u64>
impl ShlAssign<&usize> for Be<u64>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<u8>
impl ShlAssign<&usize> for Be<u8>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<&usize> for Be<usize>
impl ShlAssign<&usize> for Be<usize>
Source§fn shl_assign(&mut self, rhs: &usize)
fn shl_assign(&mut self, rhs: &usize)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<i128>
impl ShlAssign<i128> for Be<i128>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<i16>
impl ShlAssign<i128> for Be<i16>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<i32>
impl ShlAssign<i128> for Be<i32>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<i64>
impl ShlAssign<i128> for Be<i64>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<i8>
impl ShlAssign<i128> for Be<i8>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<isize>
impl ShlAssign<i128> for Be<isize>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<u128>
impl ShlAssign<i128> for Be<u128>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<u16>
impl ShlAssign<i128> for Be<u16>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<u32>
impl ShlAssign<i128> for Be<u32>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<u64>
impl ShlAssign<i128> for Be<u64>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<u8>
impl ShlAssign<i128> for Be<u8>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i128> for Be<usize>
impl ShlAssign<i128> for Be<usize>
Source§fn shl_assign(&mut self, rhs: i128)
fn shl_assign(&mut self, rhs: i128)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<i128>
impl ShlAssign<i16> for Be<i128>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<i16>
impl ShlAssign<i16> for Be<i16>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<i32>
impl ShlAssign<i16> for Be<i32>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<i64>
impl ShlAssign<i16> for Be<i64>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<i8>
impl ShlAssign<i16> for Be<i8>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<isize>
impl ShlAssign<i16> for Be<isize>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<u128>
impl ShlAssign<i16> for Be<u128>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<u16>
impl ShlAssign<i16> for Be<u16>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<u32>
impl ShlAssign<i16> for Be<u32>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<u64>
impl ShlAssign<i16> for Be<u64>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<u8>
impl ShlAssign<i16> for Be<u8>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i16> for Be<usize>
impl ShlAssign<i16> for Be<usize>
Source§fn shl_assign(&mut self, rhs: i16)
fn shl_assign(&mut self, rhs: i16)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<i128>
impl ShlAssign<i32> for Be<i128>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<i16>
impl ShlAssign<i32> for Be<i16>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<i32>
impl ShlAssign<i32> for Be<i32>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<i64>
impl ShlAssign<i32> for Be<i64>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<i8>
impl ShlAssign<i32> for Be<i8>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<isize>
impl ShlAssign<i32> for Be<isize>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<u128>
impl ShlAssign<i32> for Be<u128>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<u16>
impl ShlAssign<i32> for Be<u16>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<u32>
impl ShlAssign<i32> for Be<u32>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<u64>
impl ShlAssign<i32> for Be<u64>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<u8>
impl ShlAssign<i32> for Be<u8>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i32> for Be<usize>
impl ShlAssign<i32> for Be<usize>
Source§fn shl_assign(&mut self, rhs: i32)
fn shl_assign(&mut self, rhs: i32)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<i128>
impl ShlAssign<i64> for Be<i128>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<i16>
impl ShlAssign<i64> for Be<i16>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<i32>
impl ShlAssign<i64> for Be<i32>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<i64>
impl ShlAssign<i64> for Be<i64>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<i8>
impl ShlAssign<i64> for Be<i8>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<isize>
impl ShlAssign<i64> for Be<isize>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<u128>
impl ShlAssign<i64> for Be<u128>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<u16>
impl ShlAssign<i64> for Be<u16>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<u32>
impl ShlAssign<i64> for Be<u32>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<u64>
impl ShlAssign<i64> for Be<u64>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<u8>
impl ShlAssign<i64> for Be<u8>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i64> for Be<usize>
impl ShlAssign<i64> for Be<usize>
Source§fn shl_assign(&mut self, rhs: i64)
fn shl_assign(&mut self, rhs: i64)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<i128>
impl ShlAssign<i8> for Be<i128>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<i16>
impl ShlAssign<i8> for Be<i16>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<i32>
impl ShlAssign<i8> for Be<i32>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<i64>
impl ShlAssign<i8> for Be<i64>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<i8>
impl ShlAssign<i8> for Be<i8>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<isize>
impl ShlAssign<i8> for Be<isize>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<u128>
impl ShlAssign<i8> for Be<u128>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<u16>
impl ShlAssign<i8> for Be<u16>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<u32>
impl ShlAssign<i8> for Be<u32>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<u64>
impl ShlAssign<i8> for Be<u64>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<u8>
impl ShlAssign<i8> for Be<u8>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<i8> for Be<usize>
impl ShlAssign<i8> for Be<usize>
Source§fn shl_assign(&mut self, rhs: i8)
fn shl_assign(&mut self, rhs: i8)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<i128>
impl ShlAssign<isize> for Be<i128>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<i16>
impl ShlAssign<isize> for Be<i16>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<i32>
impl ShlAssign<isize> for Be<i32>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<i64>
impl ShlAssign<isize> for Be<i64>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<i8>
impl ShlAssign<isize> for Be<i8>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<isize>
impl ShlAssign<isize> for Be<isize>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<u128>
impl ShlAssign<isize> for Be<u128>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<u16>
impl ShlAssign<isize> for Be<u16>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<u32>
impl ShlAssign<isize> for Be<u32>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<u64>
impl ShlAssign<isize> for Be<u64>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<u8>
impl ShlAssign<isize> for Be<u8>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<isize> for Be<usize>
impl ShlAssign<isize> for Be<usize>
Source§fn shl_assign(&mut self, rhs: isize)
fn shl_assign(&mut self, rhs: isize)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<i128>
impl ShlAssign<u128> for Be<i128>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<i16>
impl ShlAssign<u128> for Be<i16>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<i32>
impl ShlAssign<u128> for Be<i32>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<i64>
impl ShlAssign<u128> for Be<i64>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<i8>
impl ShlAssign<u128> for Be<i8>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<isize>
impl ShlAssign<u128> for Be<isize>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<u128>
impl ShlAssign<u128> for Be<u128>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<u16>
impl ShlAssign<u128> for Be<u16>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<u32>
impl ShlAssign<u128> for Be<u32>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<u64>
impl ShlAssign<u128> for Be<u64>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<u8>
impl ShlAssign<u128> for Be<u8>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u128> for Be<usize>
impl ShlAssign<u128> for Be<usize>
Source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<i128>
impl ShlAssign<u16> for Be<i128>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<i16>
impl ShlAssign<u16> for Be<i16>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<i32>
impl ShlAssign<u16> for Be<i32>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<i64>
impl ShlAssign<u16> for Be<i64>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<i8>
impl ShlAssign<u16> for Be<i8>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<isize>
impl ShlAssign<u16> for Be<isize>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<u128>
impl ShlAssign<u16> for Be<u128>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<u16>
impl ShlAssign<u16> for Be<u16>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<u32>
impl ShlAssign<u16> for Be<u32>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<u64>
impl ShlAssign<u16> for Be<u64>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<u8>
impl ShlAssign<u16> for Be<u8>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u16> for Be<usize>
impl ShlAssign<u16> for Be<usize>
Source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<i128>
impl ShlAssign<u32> for Be<i128>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<i16>
impl ShlAssign<u32> for Be<i16>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<i32>
impl ShlAssign<u32> for Be<i32>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<i64>
impl ShlAssign<u32> for Be<i64>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<i8>
impl ShlAssign<u32> for Be<i8>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<isize>
impl ShlAssign<u32> for Be<isize>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<u128>
impl ShlAssign<u32> for Be<u128>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<u16>
impl ShlAssign<u32> for Be<u16>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<u32>
impl ShlAssign<u32> for Be<u32>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<u64>
impl ShlAssign<u32> for Be<u64>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<u8>
impl ShlAssign<u32> for Be<u8>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u32> for Be<usize>
impl ShlAssign<u32> for Be<usize>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<i128>
impl ShlAssign<u64> for Be<i128>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<i16>
impl ShlAssign<u64> for Be<i16>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<i32>
impl ShlAssign<u64> for Be<i32>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<i64>
impl ShlAssign<u64> for Be<i64>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<i8>
impl ShlAssign<u64> for Be<i8>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<isize>
impl ShlAssign<u64> for Be<isize>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<u128>
impl ShlAssign<u64> for Be<u128>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<u16>
impl ShlAssign<u64> for Be<u16>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<u32>
impl ShlAssign<u64> for Be<u32>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<u64>
impl ShlAssign<u64> for Be<u64>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<u8>
impl ShlAssign<u64> for Be<u8>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u64> for Be<usize>
impl ShlAssign<u64> for Be<usize>
Source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<i128>
impl ShlAssign<u8> for Be<i128>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<i16>
impl ShlAssign<u8> for Be<i16>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<i32>
impl ShlAssign<u8> for Be<i32>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<i64>
impl ShlAssign<u8> for Be<i64>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<i8>
impl ShlAssign<u8> for Be<i8>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<isize>
impl ShlAssign<u8> for Be<isize>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<u128>
impl ShlAssign<u8> for Be<u128>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<u16>
impl ShlAssign<u8> for Be<u16>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<u32>
impl ShlAssign<u8> for Be<u32>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<u64>
impl ShlAssign<u8> for Be<u64>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<u8>
impl ShlAssign<u8> for Be<u8>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<u8> for Be<usize>
impl ShlAssign<u8> for Be<usize>
Source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<i128>
impl ShlAssign<usize> for Be<i128>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<i16>
impl ShlAssign<usize> for Be<i16>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<i32>
impl ShlAssign<usize> for Be<i32>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<i64>
impl ShlAssign<usize> for Be<i64>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<i8>
impl ShlAssign<usize> for Be<i8>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<isize>
impl ShlAssign<usize> for Be<isize>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<u128>
impl ShlAssign<usize> for Be<u128>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<u16>
impl ShlAssign<usize> for Be<u16>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<u32>
impl ShlAssign<usize> for Be<u32>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<u64>
impl ShlAssign<usize> for Be<u64>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<u8>
impl ShlAssign<usize> for Be<u8>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShlAssign<usize> for Be<usize>
impl ShlAssign<usize> for Be<usize>
Source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
<<=
operation. Read moreSource§impl ShrAssign<&i128> for Be<i128>
impl ShrAssign<&i128> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<i16>
impl ShrAssign<&i128> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<i32>
impl ShrAssign<&i128> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<i64>
impl ShrAssign<&i128> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<i8>
impl ShrAssign<&i128> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<isize>
impl ShrAssign<&i128> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<u128>
impl ShrAssign<&i128> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<u16>
impl ShrAssign<&i128> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<u32>
impl ShrAssign<&i128> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<u64>
impl ShrAssign<&i128> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<u8>
impl ShrAssign<&i128> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i128> for Be<usize>
impl ShrAssign<&i128> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &i128)
fn shr_assign(&mut self, rhs: &i128)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<i128>
impl ShrAssign<&i16> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<i16>
impl ShrAssign<&i16> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<i32>
impl ShrAssign<&i16> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<i64>
impl ShrAssign<&i16> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<i8>
impl ShrAssign<&i16> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<isize>
impl ShrAssign<&i16> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<u128>
impl ShrAssign<&i16> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<u16>
impl ShrAssign<&i16> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<u32>
impl ShrAssign<&i16> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<u64>
impl ShrAssign<&i16> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<u8>
impl ShrAssign<&i16> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i16> for Be<usize>
impl ShrAssign<&i16> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &i16)
fn shr_assign(&mut self, rhs: &i16)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<i128>
impl ShrAssign<&i32> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<i16>
impl ShrAssign<&i32> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<i32>
impl ShrAssign<&i32> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<i64>
impl ShrAssign<&i32> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<i8>
impl ShrAssign<&i32> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<isize>
impl ShrAssign<&i32> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<u128>
impl ShrAssign<&i32> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<u16>
impl ShrAssign<&i32> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<u32>
impl ShrAssign<&i32> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<u64>
impl ShrAssign<&i32> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<u8>
impl ShrAssign<&i32> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i32> for Be<usize>
impl ShrAssign<&i32> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &i32)
fn shr_assign(&mut self, rhs: &i32)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<i128>
impl ShrAssign<&i64> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<i16>
impl ShrAssign<&i64> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<i32>
impl ShrAssign<&i64> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<i64>
impl ShrAssign<&i64> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<i8>
impl ShrAssign<&i64> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<isize>
impl ShrAssign<&i64> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<u128>
impl ShrAssign<&i64> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<u16>
impl ShrAssign<&i64> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<u32>
impl ShrAssign<&i64> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<u64>
impl ShrAssign<&i64> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<u8>
impl ShrAssign<&i64> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i64> for Be<usize>
impl ShrAssign<&i64> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &i64)
fn shr_assign(&mut self, rhs: &i64)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<i128>
impl ShrAssign<&i8> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<i16>
impl ShrAssign<&i8> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<i32>
impl ShrAssign<&i8> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<i64>
impl ShrAssign<&i8> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<i8>
impl ShrAssign<&i8> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<isize>
impl ShrAssign<&i8> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<u128>
impl ShrAssign<&i8> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<u16>
impl ShrAssign<&i8> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<u32>
impl ShrAssign<&i8> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<u64>
impl ShrAssign<&i8> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<u8>
impl ShrAssign<&i8> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&i8> for Be<usize>
impl ShrAssign<&i8> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &i8)
fn shr_assign(&mut self, rhs: &i8)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<i128>
impl ShrAssign<&isize> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<i16>
impl ShrAssign<&isize> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<i32>
impl ShrAssign<&isize> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<i64>
impl ShrAssign<&isize> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<i8>
impl ShrAssign<&isize> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<isize>
impl ShrAssign<&isize> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<u128>
impl ShrAssign<&isize> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<u16>
impl ShrAssign<&isize> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<u32>
impl ShrAssign<&isize> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<u64>
impl ShrAssign<&isize> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<u8>
impl ShrAssign<&isize> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&isize> for Be<usize>
impl ShrAssign<&isize> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &isize)
fn shr_assign(&mut self, rhs: &isize)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<i128>
impl ShrAssign<&u128> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<i16>
impl ShrAssign<&u128> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<i32>
impl ShrAssign<&u128> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<i64>
impl ShrAssign<&u128> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<i8>
impl ShrAssign<&u128> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<isize>
impl ShrAssign<&u128> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<u128>
impl ShrAssign<&u128> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<u16>
impl ShrAssign<&u128> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<u32>
impl ShrAssign<&u128> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<u64>
impl ShrAssign<&u128> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<u8>
impl ShrAssign<&u128> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u128> for Be<usize>
impl ShrAssign<&u128> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &u128)
fn shr_assign(&mut self, rhs: &u128)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<i128>
impl ShrAssign<&u16> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<i16>
impl ShrAssign<&u16> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<i32>
impl ShrAssign<&u16> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<i64>
impl ShrAssign<&u16> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<i8>
impl ShrAssign<&u16> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<isize>
impl ShrAssign<&u16> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<u128>
impl ShrAssign<&u16> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<u16>
impl ShrAssign<&u16> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<u32>
impl ShrAssign<&u16> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<u64>
impl ShrAssign<&u16> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<u8>
impl ShrAssign<&u16> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u16> for Be<usize>
impl ShrAssign<&u16> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &u16)
fn shr_assign(&mut self, rhs: &u16)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<i128>
impl ShrAssign<&u32> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<i16>
impl ShrAssign<&u32> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<i32>
impl ShrAssign<&u32> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<i64>
impl ShrAssign<&u32> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<i8>
impl ShrAssign<&u32> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<isize>
impl ShrAssign<&u32> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<u128>
impl ShrAssign<&u32> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<u16>
impl ShrAssign<&u32> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<u32>
impl ShrAssign<&u32> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<u64>
impl ShrAssign<&u32> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<u8>
impl ShrAssign<&u32> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u32> for Be<usize>
impl ShrAssign<&u32> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &u32)
fn shr_assign(&mut self, rhs: &u32)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<i128>
impl ShrAssign<&u64> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<i16>
impl ShrAssign<&u64> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<i32>
impl ShrAssign<&u64> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<i64>
impl ShrAssign<&u64> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<i8>
impl ShrAssign<&u64> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<isize>
impl ShrAssign<&u64> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<u128>
impl ShrAssign<&u64> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<u16>
impl ShrAssign<&u64> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<u32>
impl ShrAssign<&u64> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<u64>
impl ShrAssign<&u64> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<u8>
impl ShrAssign<&u64> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u64> for Be<usize>
impl ShrAssign<&u64> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &u64)
fn shr_assign(&mut self, rhs: &u64)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<i128>
impl ShrAssign<&u8> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<i16>
impl ShrAssign<&u8> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<i32>
impl ShrAssign<&u8> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<i64>
impl ShrAssign<&u8> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<i8>
impl ShrAssign<&u8> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<isize>
impl ShrAssign<&u8> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<u128>
impl ShrAssign<&u8> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<u16>
impl ShrAssign<&u8> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<u32>
impl ShrAssign<&u8> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<u64>
impl ShrAssign<&u8> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<u8>
impl ShrAssign<&u8> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&u8> for Be<usize>
impl ShrAssign<&u8> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &u8)
fn shr_assign(&mut self, rhs: &u8)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<i128>
impl ShrAssign<&usize> for Be<i128>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<i16>
impl ShrAssign<&usize> for Be<i16>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<i32>
impl ShrAssign<&usize> for Be<i32>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<i64>
impl ShrAssign<&usize> for Be<i64>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<i8>
impl ShrAssign<&usize> for Be<i8>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<isize>
impl ShrAssign<&usize> for Be<isize>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<u128>
impl ShrAssign<&usize> for Be<u128>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<u16>
impl ShrAssign<&usize> for Be<u16>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<u32>
impl ShrAssign<&usize> for Be<u32>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<u64>
impl ShrAssign<&usize> for Be<u64>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<u8>
impl ShrAssign<&usize> for Be<u8>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<&usize> for Be<usize>
impl ShrAssign<&usize> for Be<usize>
Source§fn shr_assign(&mut self, rhs: &usize)
fn shr_assign(&mut self, rhs: &usize)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<i128>
impl ShrAssign<i128> for Be<i128>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<i16>
impl ShrAssign<i128> for Be<i16>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<i32>
impl ShrAssign<i128> for Be<i32>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<i64>
impl ShrAssign<i128> for Be<i64>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<i8>
impl ShrAssign<i128> for Be<i8>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<isize>
impl ShrAssign<i128> for Be<isize>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<u128>
impl ShrAssign<i128> for Be<u128>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<u16>
impl ShrAssign<i128> for Be<u16>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<u32>
impl ShrAssign<i128> for Be<u32>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<u64>
impl ShrAssign<i128> for Be<u64>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<u8>
impl ShrAssign<i128> for Be<u8>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i128> for Be<usize>
impl ShrAssign<i128> for Be<usize>
Source§fn shr_assign(&mut self, rhs: i128)
fn shr_assign(&mut self, rhs: i128)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<i128>
impl ShrAssign<i16> for Be<i128>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<i16>
impl ShrAssign<i16> for Be<i16>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<i32>
impl ShrAssign<i16> for Be<i32>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<i64>
impl ShrAssign<i16> for Be<i64>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<i8>
impl ShrAssign<i16> for Be<i8>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<isize>
impl ShrAssign<i16> for Be<isize>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<u128>
impl ShrAssign<i16> for Be<u128>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<u16>
impl ShrAssign<i16> for Be<u16>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<u32>
impl ShrAssign<i16> for Be<u32>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<u64>
impl ShrAssign<i16> for Be<u64>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<u8>
impl ShrAssign<i16> for Be<u8>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i16> for Be<usize>
impl ShrAssign<i16> for Be<usize>
Source§fn shr_assign(&mut self, rhs: i16)
fn shr_assign(&mut self, rhs: i16)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<i128>
impl ShrAssign<i32> for Be<i128>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<i16>
impl ShrAssign<i32> for Be<i16>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<i32>
impl ShrAssign<i32> for Be<i32>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<i64>
impl ShrAssign<i32> for Be<i64>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<i8>
impl ShrAssign<i32> for Be<i8>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<isize>
impl ShrAssign<i32> for Be<isize>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<u128>
impl ShrAssign<i32> for Be<u128>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<u16>
impl ShrAssign<i32> for Be<u16>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<u32>
impl ShrAssign<i32> for Be<u32>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<u64>
impl ShrAssign<i32> for Be<u64>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<u8>
impl ShrAssign<i32> for Be<u8>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i32> for Be<usize>
impl ShrAssign<i32> for Be<usize>
Source§fn shr_assign(&mut self, rhs: i32)
fn shr_assign(&mut self, rhs: i32)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<i128>
impl ShrAssign<i64> for Be<i128>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<i16>
impl ShrAssign<i64> for Be<i16>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<i32>
impl ShrAssign<i64> for Be<i32>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<i64>
impl ShrAssign<i64> for Be<i64>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<i8>
impl ShrAssign<i64> for Be<i8>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<isize>
impl ShrAssign<i64> for Be<isize>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<u128>
impl ShrAssign<i64> for Be<u128>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<u16>
impl ShrAssign<i64> for Be<u16>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<u32>
impl ShrAssign<i64> for Be<u32>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<u64>
impl ShrAssign<i64> for Be<u64>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<u8>
impl ShrAssign<i64> for Be<u8>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i64> for Be<usize>
impl ShrAssign<i64> for Be<usize>
Source§fn shr_assign(&mut self, rhs: i64)
fn shr_assign(&mut self, rhs: i64)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<i128>
impl ShrAssign<i8> for Be<i128>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<i16>
impl ShrAssign<i8> for Be<i16>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<i32>
impl ShrAssign<i8> for Be<i32>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<i64>
impl ShrAssign<i8> for Be<i64>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<i8>
impl ShrAssign<i8> for Be<i8>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<isize>
impl ShrAssign<i8> for Be<isize>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<u128>
impl ShrAssign<i8> for Be<u128>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<u16>
impl ShrAssign<i8> for Be<u16>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<u32>
impl ShrAssign<i8> for Be<u32>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<u64>
impl ShrAssign<i8> for Be<u64>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<u8>
impl ShrAssign<i8> for Be<u8>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<i8> for Be<usize>
impl ShrAssign<i8> for Be<usize>
Source§fn shr_assign(&mut self, rhs: i8)
fn shr_assign(&mut self, rhs: i8)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<i128>
impl ShrAssign<isize> for Be<i128>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<i16>
impl ShrAssign<isize> for Be<i16>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<i32>
impl ShrAssign<isize> for Be<i32>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<i64>
impl ShrAssign<isize> for Be<i64>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<i8>
impl ShrAssign<isize> for Be<i8>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<isize>
impl ShrAssign<isize> for Be<isize>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<u128>
impl ShrAssign<isize> for Be<u128>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<u16>
impl ShrAssign<isize> for Be<u16>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<u32>
impl ShrAssign<isize> for Be<u32>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<u64>
impl ShrAssign<isize> for Be<u64>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<u8>
impl ShrAssign<isize> for Be<u8>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<isize> for Be<usize>
impl ShrAssign<isize> for Be<usize>
Source§fn shr_assign(&mut self, rhs: isize)
fn shr_assign(&mut self, rhs: isize)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<i128>
impl ShrAssign<u128> for Be<i128>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<i16>
impl ShrAssign<u128> for Be<i16>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<i32>
impl ShrAssign<u128> for Be<i32>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<i64>
impl ShrAssign<u128> for Be<i64>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<i8>
impl ShrAssign<u128> for Be<i8>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<isize>
impl ShrAssign<u128> for Be<isize>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<u128>
impl ShrAssign<u128> for Be<u128>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<u16>
impl ShrAssign<u128> for Be<u16>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<u32>
impl ShrAssign<u128> for Be<u32>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<u64>
impl ShrAssign<u128> for Be<u64>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<u8>
impl ShrAssign<u128> for Be<u8>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u128> for Be<usize>
impl ShrAssign<u128> for Be<usize>
Source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<i128>
impl ShrAssign<u16> for Be<i128>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<i16>
impl ShrAssign<u16> for Be<i16>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<i32>
impl ShrAssign<u16> for Be<i32>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<i64>
impl ShrAssign<u16> for Be<i64>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<i8>
impl ShrAssign<u16> for Be<i8>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<isize>
impl ShrAssign<u16> for Be<isize>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<u128>
impl ShrAssign<u16> for Be<u128>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<u16>
impl ShrAssign<u16> for Be<u16>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<u32>
impl ShrAssign<u16> for Be<u32>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<u64>
impl ShrAssign<u16> for Be<u64>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<u8>
impl ShrAssign<u16> for Be<u8>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u16> for Be<usize>
impl ShrAssign<u16> for Be<usize>
Source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<i128>
impl ShrAssign<u32> for Be<i128>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<i16>
impl ShrAssign<u32> for Be<i16>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<i32>
impl ShrAssign<u32> for Be<i32>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<i64>
impl ShrAssign<u32> for Be<i64>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<i8>
impl ShrAssign<u32> for Be<i8>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<isize>
impl ShrAssign<u32> for Be<isize>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<u128>
impl ShrAssign<u32> for Be<u128>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<u16>
impl ShrAssign<u32> for Be<u16>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<u32>
impl ShrAssign<u32> for Be<u32>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<u64>
impl ShrAssign<u32> for Be<u64>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<u8>
impl ShrAssign<u32> for Be<u8>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u32> for Be<usize>
impl ShrAssign<u32> for Be<usize>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<i128>
impl ShrAssign<u64> for Be<i128>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<i16>
impl ShrAssign<u64> for Be<i16>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<i32>
impl ShrAssign<u64> for Be<i32>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<i64>
impl ShrAssign<u64> for Be<i64>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<i8>
impl ShrAssign<u64> for Be<i8>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<isize>
impl ShrAssign<u64> for Be<isize>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<u128>
impl ShrAssign<u64> for Be<u128>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<u16>
impl ShrAssign<u64> for Be<u16>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<u32>
impl ShrAssign<u64> for Be<u32>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<u64>
impl ShrAssign<u64> for Be<u64>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<u8>
impl ShrAssign<u64> for Be<u8>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u64> for Be<usize>
impl ShrAssign<u64> for Be<usize>
Source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<i128>
impl ShrAssign<u8> for Be<i128>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<i16>
impl ShrAssign<u8> for Be<i16>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<i32>
impl ShrAssign<u8> for Be<i32>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<i64>
impl ShrAssign<u8> for Be<i64>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<i8>
impl ShrAssign<u8> for Be<i8>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<isize>
impl ShrAssign<u8> for Be<isize>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<u128>
impl ShrAssign<u8> for Be<u128>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<u16>
impl ShrAssign<u8> for Be<u16>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<u32>
impl ShrAssign<u8> for Be<u32>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<u64>
impl ShrAssign<u8> for Be<u64>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<u8>
impl ShrAssign<u8> for Be<u8>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<u8> for Be<usize>
impl ShrAssign<u8> for Be<usize>
Source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<i128>
impl ShrAssign<usize> for Be<i128>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<i16>
impl ShrAssign<usize> for Be<i16>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<i32>
impl ShrAssign<usize> for Be<i32>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<i64>
impl ShrAssign<usize> for Be<i64>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<i8>
impl ShrAssign<usize> for Be<i8>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<isize>
impl ShrAssign<usize> for Be<isize>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<u128>
impl ShrAssign<usize> for Be<u128>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<u16>
impl ShrAssign<usize> for Be<u16>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<u32>
impl ShrAssign<usize> for Be<u32>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<u64>
impl ShrAssign<usize> for Be<u64>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<u8>
impl ShrAssign<usize> for Be<u8>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl ShrAssign<usize> for Be<usize>
impl ShrAssign<usize> for Be<usize>
Source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
>>=
operation. Read moreSource§impl SubAssign for Be<i128>
impl SubAssign for Be<i128>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<i16>
impl SubAssign for Be<i16>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<i32>
impl SubAssign for Be<i32>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<i64>
impl SubAssign for Be<i64>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<i8>
impl SubAssign for Be<i8>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<isize>
impl SubAssign for Be<isize>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<u128>
impl SubAssign for Be<u128>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<u16>
impl SubAssign for Be<u16>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<u32>
impl SubAssign for Be<u32>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<u64>
impl SubAssign for Be<u64>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<u8>
impl SubAssign for Be<u8>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl SubAssign for Be<usize>
impl SubAssign for Be<usize>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more