Struct endian_types::Endian
[−]
[src]
pub struct Endian<T: BitAnd + BitOr + BitXor + Not + Eq, O: ByteOrder>(_, _);
Byte order‐limited integer
Methods
impl Endian<u16, BigEndian>
[src]
fn new(value: u16) -> Self
Constructs new byte order‐limited integer
fn to_native(self) -> u16
Converts byte‐order limited integer to native integer
impl Endian<u32, BigEndian>
[src]
fn new(value: u32) -> Self
Constructs new byte order‐limited integer
fn to_native(self) -> u32
Converts byte‐order limited integer to native integer
impl Endian<u64, BigEndian>
[src]
fn new(value: u64) -> Self
Constructs new byte order‐limited integer
fn to_native(self) -> u64
Converts byte‐order limited integer to native integer
impl Endian<u16, LittleEndian>
[src]
fn new(value: u16) -> Self
Constructs new byte order‐limited integer
fn to_native(self) -> u16
Converts byte‐order limited integer to native integer
impl Endian<u32, LittleEndian>
[src]
fn new(value: u32) -> Self
Constructs new byte order‐limited integer
fn to_native(self) -> u32
Converts byte‐order limited integer to native integer
impl Endian<u64, LittleEndian>
[src]
fn new(value: u64) -> Self
Constructs new byte order‐limited integer
fn to_native(self) -> u64
Converts byte‐order limited integer to native integer
Trait Implementations
impl<T: Copy + BitAnd + BitOr + BitXor + Not + Eq, O: Copy + ByteOrder> Copy for Endian<T, O>
[src]
impl<T: Clone + BitAnd + BitOr + BitXor + Not + Eq, O: Clone + ByteOrder> Clone for Endian<T, O>
[src]
fn clone(&self) -> Endian<T, O>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl BitAnd for Endian<u16, BigEndian>
[src]
type Output = Endian<<u16 as BitAnd>::Output, BigEndian>
The resulting type after applying the &
operator
fn bitand(self, rhs: Self) -> Self::Output
The method for the &
operator
impl BitOr for Endian<u16, BigEndian>
[src]
type Output = Endian<<u16 as BitOr>::Output, BigEndian>
The resulting type after applying the |
operator
fn bitor(self, rhs: Self) -> Self::Output
The method for the |
operator
impl BitXor for Endian<u16, BigEndian>
[src]
type Output = Endian<<u16 as BitXor>::Output, BigEndian>
The resulting type after applying the ^
operator
fn bitxor(self, rhs: Self) -> Self::Output
The method for the ^
operator
impl Not for Endian<u16, BigEndian>
[src]
type Output = Endian<<u16 as Not>::Output, BigEndian>
The resulting type after applying the !
operator
fn not(self) -> Self::Output
The method for the unary !
operator
impl PartialEq for Endian<u16, BigEndian>
[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, rhs: &Self) -> bool
This method tests for !=
.
impl Eq for Endian<u16, BigEndian>
[src]
impl BitAnd for Endian<u32, BigEndian>
[src]
type Output = Endian<<u32 as BitAnd>::Output, BigEndian>
The resulting type after applying the &
operator
fn bitand(self, rhs: Self) -> Self::Output
The method for the &
operator
impl BitOr for Endian<u32, BigEndian>
[src]
type Output = Endian<<u32 as BitOr>::Output, BigEndian>
The resulting type after applying the |
operator
fn bitor(self, rhs: Self) -> Self::Output
The method for the |
operator
impl BitXor for Endian<u32, BigEndian>
[src]
type Output = Endian<<u32 as BitXor>::Output, BigEndian>
The resulting type after applying the ^
operator
fn bitxor(self, rhs: Self) -> Self::Output
The method for the ^
operator
impl Not for Endian<u32, BigEndian>
[src]
type Output = Endian<<u32 as Not>::Output, BigEndian>
The resulting type after applying the !
operator
fn not(self) -> Self::Output
The method for the unary !
operator
impl PartialEq for Endian<u32, BigEndian>
[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, rhs: &Self) -> bool
This method tests for !=
.
impl Eq for Endian<u32, BigEndian>
[src]
impl BitAnd for Endian<u64, BigEndian>
[src]
type Output = Endian<<u64 as BitAnd>::Output, BigEndian>
The resulting type after applying the &
operator
fn bitand(self, rhs: Self) -> Self::Output
The method for the &
operator
impl BitOr for Endian<u64, BigEndian>
[src]
type Output = Endian<<u64 as BitOr>::Output, BigEndian>
The resulting type after applying the |
operator
fn bitor(self, rhs: Self) -> Self::Output
The method for the |
operator
impl BitXor for Endian<u64, BigEndian>
[src]
type Output = Endian<<u64 as BitXor>::Output, BigEndian>
The resulting type after applying the ^
operator
fn bitxor(self, rhs: Self) -> Self::Output
The method for the ^
operator
impl Not for Endian<u64, BigEndian>
[src]
type Output = Endian<<u64 as Not>::Output, BigEndian>
The resulting type after applying the !
operator
fn not(self) -> Self::Output
The method for the unary !
operator
impl PartialEq for Endian<u64, BigEndian>
[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, rhs: &Self) -> bool
This method tests for !=
.
impl Eq for Endian<u64, BigEndian>
[src]
impl BitAnd for Endian<u16, LittleEndian>
[src]
type Output = Endian<<u16 as BitAnd>::Output, LittleEndian>
The resulting type after applying the &
operator
fn bitand(self, rhs: Self) -> Self::Output
The method for the &
operator
impl BitOr for Endian<u16, LittleEndian>
[src]
type Output = Endian<<u16 as BitOr>::Output, LittleEndian>
The resulting type after applying the |
operator
fn bitor(self, rhs: Self) -> Self::Output
The method for the |
operator
impl BitXor for Endian<u16, LittleEndian>
[src]
type Output = Endian<<u16 as BitXor>::Output, LittleEndian>
The resulting type after applying the ^
operator
fn bitxor(self, rhs: Self) -> Self::Output
The method for the ^
operator
impl Not for Endian<u16, LittleEndian>
[src]
type Output = Endian<<u16 as Not>::Output, LittleEndian>
The resulting type after applying the !
operator
fn not(self) -> Self::Output
The method for the unary !
operator
impl PartialEq for Endian<u16, LittleEndian>
[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, rhs: &Self) -> bool
This method tests for !=
.
impl Eq for Endian<u16, LittleEndian>
[src]
impl BitAnd for Endian<u32, LittleEndian>
[src]
type Output = Endian<<u32 as BitAnd>::Output, LittleEndian>
The resulting type after applying the &
operator
fn bitand(self, rhs: Self) -> Self::Output
The method for the &
operator
impl BitOr for Endian<u32, LittleEndian>
[src]
type Output = Endian<<u32 as BitOr>::Output, LittleEndian>
The resulting type after applying the |
operator
fn bitor(self, rhs: Self) -> Self::Output
The method for the |
operator
impl BitXor for Endian<u32, LittleEndian>
[src]
type Output = Endian<<u32 as BitXor>::Output, LittleEndian>
The resulting type after applying the ^
operator
fn bitxor(self, rhs: Self) -> Self::Output
The method for the ^
operator
impl Not for Endian<u32, LittleEndian>
[src]
type Output = Endian<<u32 as Not>::Output, LittleEndian>
The resulting type after applying the !
operator
fn not(self) -> Self::Output
The method for the unary !
operator
impl PartialEq for Endian<u32, LittleEndian>
[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, rhs: &Self) -> bool
This method tests for !=
.
impl Eq for Endian<u32, LittleEndian>
[src]
impl BitAnd for Endian<u64, LittleEndian>
[src]
type Output = Endian<<u64 as BitAnd>::Output, LittleEndian>
The resulting type after applying the &
operator
fn bitand(self, rhs: Self) -> Self::Output
The method for the &
operator
impl BitOr for Endian<u64, LittleEndian>
[src]
type Output = Endian<<u64 as BitOr>::Output, LittleEndian>
The resulting type after applying the |
operator
fn bitor(self, rhs: Self) -> Self::Output
The method for the |
operator
impl BitXor for Endian<u64, LittleEndian>
[src]
type Output = Endian<<u64 as BitXor>::Output, LittleEndian>
The resulting type after applying the ^
operator
fn bitxor(self, rhs: Self) -> Self::Output
The method for the ^
operator
impl Not for Endian<u64, LittleEndian>
[src]
type Output = Endian<<u64 as Not>::Output, LittleEndian>
The resulting type after applying the !
operator
fn not(self) -> Self::Output
The method for the unary !
operator
impl PartialEq for Endian<u64, LittleEndian>
[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, rhs: &Self) -> bool
This method tests for !=
.