Union nibble::base::u4lo
[−]
[src]
#[repr(C)]pub union u4lo { // some fields omitted }
A nibble stored in the low-order bits of a byte.
Trait Implementations
impl PartialEq<u4hi> for u4lo
[src]
fn eq(&self, rhs: &u4hi) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<u4lo> for u4lo
[src]
fn eq(&self, rhs: &u4lo) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<u8> for u4lo
[src]
fn eq(&self, rhs: &u8) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialOrd<u4hi> for u4lo
[src]
fn partial_cmp(&self, rhs: &u4hi) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialOrd<u4lo> for u4lo
[src]
fn partial_cmp(&self, rhs: &u4lo) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialOrd<u8> for u4lo
[src]
fn partial_cmp(&self, rhs: &u8) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for u4lo
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for u4lo
[src]
impl Ord for u4lo
[src]
fn cmp(&self, rhs: &u4lo) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Binary for u4lo
[src]
impl Octal for u4lo
[src]
impl LowerHex for u4lo
[src]
impl UpperHex for u4lo
[src]
impl Debug for u4lo
[src]
impl Display for u4lo
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for u4lo
[src]
Parses a string into a nibble.
This assumes that single digits are in hexadecimal, and larger strings are in
decimal. For more control, use from_str_radix
instead.
type Err = ParseNibbleError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ParseNibbleError>
[src]
Parses a string s
to return a value of this type. Read more
impl CheckedAdd for u4lo
[src]
fn checked_add(&self, rhs: &u4lo) -> Option<u4lo>
[src]
Adds two numbers, checking for overflow. If overflow happens, None
is returned. Read more
impl CheckedSub for u4lo
[src]
fn checked_sub(&self, rhs: &u4lo) -> Option<u4lo>
[src]
Subtracts two numbers, checking for underflow. If underflow happens, None
is returned. Read more
impl CheckedMul for u4lo
[src]
fn checked_mul(&self, rhs: &u4lo) -> Option<u4lo>
[src]
Multiplies two numbers, checking for underflow or overflow. If underflow or overflow happens, None
is returned. Read more
impl CheckedDiv for u4lo
[src]
fn checked_div(&self, rhs: &u4lo) -> Option<u4lo>
[src]
Divides two numbers, checking for underflow, overflow and division by zero. If any of that happens, None
is returned. Read more
impl WrappingAdd for u4lo
[src]
fn wrapping_add(&self, rhs: &u4lo) -> u4lo
[src]
Wrapping (modular) addition. Computes self + other
, wrapping around at the boundary of the type. Read more
impl WrappingSub for u4lo
[src]
fn wrapping_sub(&self, rhs: &u4lo) -> u4lo
[src]
Wrapping (modular) subtraction. Computes self - other
, wrapping around at the boundary of the type. Read more
impl WrappingMul for u4lo
[src]
fn wrapping_mul(&self, rhs: &u4lo) -> u4lo
[src]
Wrapping (modular) multiplication. Computes self * other
, wrapping around at the boundary of the type. Read more
impl Saturating for u4lo
[src]
fn saturating_add(self, rhs: u4lo) -> u4lo
[src]
Saturating addition operator. Returns a+b, saturating at the numeric bounds instead of overflowing. Read more
fn saturating_sub(self, rhs: u4lo) -> u4lo
[src]
Saturating subtraction operator. Returns a-b, saturating at the numeric bounds instead of overflowing. Read more
impl Bounded for u4lo
[src]
fn min_value() -> u4lo
[src]
returns the smallest finite number this type can represent
fn max_value() -> u4lo
[src]
returns the largest finite number this type can represent
impl Zero for u4lo
[src]
fn zero() -> u4lo
[src]
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
[src]
Returns true
if self
is equal to the additive identity.
impl One for u4lo
[src]
impl Unsigned for u4lo
[src]
impl FromPrimitive for u4lo
[src]
fn from_i64(n: i64) -> Option<u4lo>
[src]
Convert an i64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u64(n: u64) -> Option<u4lo>
[src]
Convert an u64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_isize(n: isize) -> Option<Self>
[src]
Convert an isize
to return an optional value of this type. If the value cannot be represented by this value, the None
is returned. Read more
fn from_i8(n: i8) -> Option<Self>
[src]
Convert an i8
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_i16(n: i16) -> Option<Self>
[src]
Convert an i16
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_i32(n: i32) -> Option<Self>
[src]
Convert an i32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_usize(n: usize) -> Option<Self>
[src]
Convert a usize
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u8(n: u8) -> Option<Self>
[src]
Convert an u8
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u16(n: u16) -> Option<Self>
[src]
Convert an u16
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_u32(n: u32) -> Option<Self>
[src]
Convert an u32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_f32(n: f32) -> Option<Self>
[src]
Convert a f32
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
fn from_f64(n: f64) -> Option<Self>
[src]
Convert a f64
to return an optional value of this type. If the type cannot be represented by this value, the None
is returned. Read more
impl NumCast for u4lo
[src]
fn from<P: ToPrimitive>(n: P) -> Option<u4lo>
[src]
Creates a number from another value that can be converted into a primitive via the ToPrimitive
trait. Read more
impl ToPrimitive for u4lo
[src]
fn to_i64(&self) -> Option<i64>
[src]
Converts the value of self
to an i64
.
fn to_u64(&self) -> Option<u64>
[src]
Converts the value of self
to an u64
.
fn to_isize(&self) -> Option<isize>
[src]
Converts the value of self
to an isize
.
fn to_i8(&self) -> Option<i8>
[src]
Converts the value of self
to an i8
.
fn to_i16(&self) -> Option<i16>
[src]
Converts the value of self
to an i16
.
fn to_i32(&self) -> Option<i32>
[src]
Converts the value of self
to an i32
.
fn to_usize(&self) -> Option<usize>
[src]
Converts the value of self
to a usize
.
fn to_u8(&self) -> Option<u8>
[src]
Converts the value of self
to an u8
.
fn to_u16(&self) -> Option<u16>
[src]
Converts the value of self
to an u16
.
fn to_u32(&self) -> Option<u32>
[src]
Converts the value of self
to an u32
.
fn to_f32(&self) -> Option<f32>
[src]
Converts the value of self
to an f32
.
fn to_f64(&self) -> Option<f64>
[src]
Converts the value of self
to an f64
.
impl PrimInt for u4lo
[src]
fn count_ones(self) -> u32
[src]
Returns the number of ones in the binary representation of self
. Read more
fn count_zeros(self) -> u32
[src]
Returns the number of zeros in the binary representation of self
. Read more
fn leading_zeros(self) -> u32
[src]
Returns the number of leading zeros in the binary representation of self
. Read more
fn trailing_zeros(self) -> u32
[src]
Returns the number of trailing zeros in the binary representation of self
. Read more
fn rotate_left(self, n: u32) -> u4lo
[src]
Shifts the bits to the left by a specified amount amount, n
, wrapping the truncated bits to the end of the resulting integer. Read more
fn rotate_right(self, n: u32) -> u4lo
[src]
Shifts the bits to the right by a specified amount amount, n
, wrapping the truncated bits to the beginning of the resulting integer. Read more
fn signed_shl(self, n: u32) -> u4lo
[src]
Shifts the bits to the left by a specified amount amount, n
, filling zeros in the least significant bits. Read more
fn signed_shr(self, n: u32) -> u4lo
[src]
Shifts the bits to the right by a specified amount amount, n
, copying the "sign bit" in the most significant bits even for unsigned types. Read more
fn unsigned_shl(self, n: u32) -> u4lo
[src]
Shifts the bits to the left by a specified amount amount, n
, filling zeros in the least significant bits. Read more
fn unsigned_shr(self, n: u32) -> u4lo
[src]
Shifts the bits to the right by a specified amount amount, n
, filling zeros in the most significant bits. Read more
fn swap_bytes(self) -> u4lo
[src]
Reverses the byte order of the integer. Read more
fn from_be(x: Self) -> u4lo
[src]
Convert an integer from big endian to the target's endianness. Read more
fn from_le(x: Self) -> u4lo
[src]
Convert an integer from little endian to the target's endianness. Read more
fn to_be(self) -> u4lo
[src]
Convert self
to big endian from the target's endianness. Read more
fn to_le(self) -> u4lo
[src]
Convert self
to little endian from the target's endianness. Read more
fn pow(self, exp: u32) -> u4lo
[src]
Raises self to the power of exp
, using exponentiation by squaring. Read more
impl Num for u4lo
[src]
type FromStrRadixErr = ParseNibbleError
fn from_str_radix(s: &str, radix: u32) -> Result<u4lo, ParseNibbleError>
[src]
Convert from a string and radix <= 36. Read more
impl<'rhs> Add<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the +
operator.
fn add(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the +
operation.
impl<'rhs, 'lhs> Add<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the +
operator.
fn add(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the +
operation.
impl<'lhs> Add<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the +
operator.
fn add(self, rhs: u4lo) -> u4lo
[src]
Performs the +
operation.
impl AddAssign<u4lo> for u4lo
[src]
fn add_assign(&mut self, rhs: u4lo)
[src]
Performs the +=
operation.
impl<'rhs> AddAssign<&'rhs u4lo> for u4lo
[src]
fn add_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the +=
operation.
impl<'rhs> Sub<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the -
operator.
fn sub(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the -
operation.
impl<'rhs, 'lhs> Sub<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the -
operator.
fn sub(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the -
operation.
impl<'lhs> Sub<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the -
operator.
fn sub(self, rhs: u4lo) -> u4lo
[src]
Performs the -
operation.
impl SubAssign<u4lo> for u4lo
[src]
fn sub_assign(&mut self, rhs: u4lo)
[src]
Performs the -=
operation.
impl<'rhs> SubAssign<&'rhs u4lo> for u4lo
[src]
fn sub_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the -=
operation.
impl<'rhs> Mul<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the *
operator.
fn mul(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the *
operation.
impl<'rhs, 'lhs> Mul<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the *
operator.
fn mul(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the *
operation.
impl<'lhs> Mul<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the *
operator.
fn mul(self, rhs: u4lo) -> u4lo
[src]
Performs the *
operation.
impl MulAssign<u4lo> for u4lo
[src]
fn mul_assign(&mut self, rhs: u4lo)
[src]
Performs the *=
operation.
impl<'rhs> MulAssign<&'rhs u4lo> for u4lo
[src]
fn mul_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the *=
operation.
impl<'rhs> Div<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the /
operator.
fn div(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the /
operation.
impl<'rhs, 'lhs> Div<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the /
operator.
fn div(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the /
operation.
impl<'lhs> Div<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the /
operator.
fn div(self, rhs: u4lo) -> u4lo
[src]
Performs the /
operation.
impl DivAssign<u4lo> for u4lo
[src]
fn div_assign(&mut self, rhs: u4lo)
[src]
Performs the /=
operation.
impl<'rhs> DivAssign<&'rhs u4lo> for u4lo
[src]
fn div_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the /=
operation.
impl<'rhs> Rem<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the %
operator.
fn rem(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the %
operation.
impl<'rhs, 'lhs> Rem<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the %
operator.
fn rem(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the %
operation.
impl<'lhs> Rem<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the %
operator.
fn rem(self, rhs: u4lo) -> u4lo
[src]
Performs the %
operation.
impl RemAssign<u4lo> for u4lo
[src]
fn rem_assign(&mut self, rhs: u4lo)
[src]
Performs the %=
operation.
impl<'rhs> RemAssign<&'rhs u4lo> for u4lo
[src]
fn rem_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the %=
operation.
impl<'rhs> BitAnd<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the &
operator.
fn bitand(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the &
operation.
impl<'rhs, 'lhs> BitAnd<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the &
operator.
fn bitand(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the &
operation.
impl<'lhs> BitAnd<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the &
operator.
fn bitand(self, rhs: u4lo) -> u4lo
[src]
Performs the &
operation.
impl BitAndAssign<u4lo> for u4lo
[src]
fn bitand_assign(&mut self, rhs: u4lo)
[src]
Performs the &=
operation.
impl<'rhs> BitAndAssign<&'rhs u4lo> for u4lo
[src]
fn bitand_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the &=
operation.
impl<'rhs> BitOr<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the |
operator.
fn bitor(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the |
operation.
impl<'rhs, 'lhs> BitOr<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the |
operator.
fn bitor(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the |
operation.
impl<'lhs> BitOr<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the |
operator.
fn bitor(self, rhs: u4lo) -> u4lo
[src]
Performs the |
operation.
impl BitOrAssign<u4lo> for u4lo
[src]
fn bitor_assign(&mut self, rhs: u4lo)
[src]
Performs the |=
operation.
impl<'rhs> BitOrAssign<&'rhs u4lo> for u4lo
[src]
fn bitor_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the |=
operation.
impl<'rhs> BitXor<&'rhs u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the ^
operation.
impl<'rhs, 'lhs> BitXor<&'rhs u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: &'rhs u4lo) -> u4lo
[src]
Performs the ^
operation.
impl<'lhs> BitXor<u4lo> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: u4lo) -> u4lo
[src]
Performs the ^
operation.
impl BitXorAssign<u4lo> for u4lo
[src]
fn bitxor_assign(&mut self, rhs: u4lo)
[src]
Performs the ^=
operation.
impl<'rhs> BitXorAssign<&'rhs u4lo> for u4lo
[src]
fn bitxor_assign(&mut self, rhs: &'rhs u4lo)
[src]
Performs the ^=
operation.
impl<'rhs> Shl<&'rhs u8> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u8) -> u4lo
[src]
Performs the <<
operation.
impl<'rhs, 'lhs> Shl<&'rhs u8> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u8) -> u4lo
[src]
Performs the <<
operation.
impl<'lhs> Shl<u8> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u8) -> u4lo
[src]
Performs the <<
operation.
impl ShlAssign<u8> for u4lo
[src]
fn shl_assign(&mut self, rhs: u8)
[src]
Performs the <<=
operation.
impl<'rhs> ShlAssign<&'rhs u8> for u4lo
[src]
fn shl_assign(&mut self, rhs: &'rhs u8)
[src]
Performs the <<=
operation.
impl<'rhs> Shr<&'rhs u8> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u8) -> u4lo
[src]
Performs the >>
operation.
impl<'rhs, 'lhs> Shr<&'rhs u8> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u8) -> u4lo
[src]
Performs the >>
operation.
impl<'lhs> Shr<u8> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u8) -> u4lo
[src]
Performs the >>
operation.
impl ShrAssign<u8> for u4lo
[src]
fn shr_assign(&mut self, rhs: u8)
[src]
Performs the >>=
operation.
impl<'rhs> ShrAssign<&'rhs u8> for u4lo
[src]
fn shr_assign(&mut self, rhs: &'rhs u8)
[src]
Performs the >>=
operation.
impl<'rhs> Shl<&'rhs u16> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u16) -> u4lo
[src]
Performs the <<
operation.
impl<'rhs, 'lhs> Shl<&'rhs u16> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u16) -> u4lo
[src]
Performs the <<
operation.
impl<'lhs> Shl<u16> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u16) -> u4lo
[src]
Performs the <<
operation.
impl ShlAssign<u16> for u4lo
[src]
fn shl_assign(&mut self, rhs: u16)
[src]
Performs the <<=
operation.
impl<'rhs> ShlAssign<&'rhs u16> for u4lo
[src]
fn shl_assign(&mut self, rhs: &'rhs u16)
[src]
Performs the <<=
operation.
impl<'rhs> Shr<&'rhs u16> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u16) -> u4lo
[src]
Performs the >>
operation.
impl<'rhs, 'lhs> Shr<&'rhs u16> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u16) -> u4lo
[src]
Performs the >>
operation.
impl<'lhs> Shr<u16> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u16) -> u4lo
[src]
Performs the >>
operation.
impl ShrAssign<u16> for u4lo
[src]
fn shr_assign(&mut self, rhs: u16)
[src]
Performs the >>=
operation.
impl<'rhs> ShrAssign<&'rhs u16> for u4lo
[src]
fn shr_assign(&mut self, rhs: &'rhs u16)
[src]
Performs the >>=
operation.
impl<'rhs> Shl<&'rhs u32> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u32) -> u4lo
[src]
Performs the <<
operation.
impl<'rhs, 'lhs> Shl<&'rhs u32> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u32) -> u4lo
[src]
Performs the <<
operation.
impl<'lhs> Shl<u32> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u32) -> u4lo
[src]
Performs the <<
operation.
impl ShlAssign<u32> for u4lo
[src]
fn shl_assign(&mut self, rhs: u32)
[src]
Performs the <<=
operation.
impl<'rhs> ShlAssign<&'rhs u32> for u4lo
[src]
fn shl_assign(&mut self, rhs: &'rhs u32)
[src]
Performs the <<=
operation.
impl<'rhs> Shr<&'rhs u32> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u32) -> u4lo
[src]
Performs the >>
operation.
impl<'rhs, 'lhs> Shr<&'rhs u32> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u32) -> u4lo
[src]
Performs the >>
operation.
impl<'lhs> Shr<u32> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u32) -> u4lo
[src]
Performs the >>
operation.
impl ShrAssign<u32> for u4lo
[src]
fn shr_assign(&mut self, rhs: u32)
[src]
Performs the >>=
operation.
impl<'rhs> ShrAssign<&'rhs u32> for u4lo
[src]
fn shr_assign(&mut self, rhs: &'rhs u32)
[src]
Performs the >>=
operation.
impl<'rhs> Shl<&'rhs u64> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u64) -> u4lo
[src]
Performs the <<
operation.
impl<'rhs, 'lhs> Shl<&'rhs u64> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs u64) -> u4lo
[src]
Performs the <<
operation.
impl<'lhs> Shl<u64> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u64) -> u4lo
[src]
Performs the <<
operation.
impl ShlAssign<u64> for u4lo
[src]
fn shl_assign(&mut self, rhs: u64)
[src]
Performs the <<=
operation.
impl<'rhs> ShlAssign<&'rhs u64> for u4lo
[src]
fn shl_assign(&mut self, rhs: &'rhs u64)
[src]
Performs the <<=
operation.
impl<'rhs> Shr<&'rhs u64> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u64) -> u4lo
[src]
Performs the >>
operation.
impl<'rhs, 'lhs> Shr<&'rhs u64> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs u64) -> u4lo
[src]
Performs the >>
operation.
impl<'lhs> Shr<u64> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u64) -> u4lo
[src]
Performs the >>
operation.
impl ShrAssign<u64> for u4lo
[src]
fn shr_assign(&mut self, rhs: u64)
[src]
Performs the >>=
operation.
impl<'rhs> ShrAssign<&'rhs u64> for u4lo
[src]
fn shr_assign(&mut self, rhs: &'rhs u64)
[src]
Performs the >>=
operation.
impl<'rhs> Shl<&'rhs usize> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs usize) -> u4lo
[src]
Performs the <<
operation.
impl<'rhs, 'lhs> Shl<&'rhs usize> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: &'rhs usize) -> u4lo
[src]
Performs the <<
operation.
impl<'lhs> Shl<usize> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: usize) -> u4lo
[src]
Performs the <<
operation.
impl ShlAssign<usize> for u4lo
[src]
fn shl_assign(&mut self, rhs: usize)
[src]
Performs the <<=
operation.
impl<'rhs> ShlAssign<&'rhs usize> for u4lo
[src]
fn shl_assign(&mut self, rhs: &'rhs usize)
[src]
Performs the <<=
operation.
impl<'rhs> Shr<&'rhs usize> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs usize) -> u4lo
[src]
Performs the >>
operation.
impl<'rhs, 'lhs> Shr<&'rhs usize> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: &'rhs usize) -> u4lo
[src]
Performs the >>
operation.
impl<'lhs> Shr<usize> for &'lhs u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: usize) -> u4lo
[src]
Performs the >>
operation.
impl ShrAssign<usize> for u4lo
[src]
fn shr_assign(&mut self, rhs: usize)
[src]
Performs the >>=
operation.
impl<'rhs> ShrAssign<&'rhs usize> for u4lo
[src]
fn shr_assign(&mut self, rhs: &'rhs usize)
[src]
Performs the >>=
operation.
impl Add<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the +
operator.
fn add(self, rhs: u4lo) -> u4lo
[src]
Performs the +
operation.
impl Sub<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the -
operator.
fn sub(self, rhs: u4lo) -> u4lo
[src]
Performs the -
operation.
impl Mul<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the *
operator.
fn mul(self, rhs: u4lo) -> u4lo
[src]
Performs the *
operation.
impl Div<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the /
operator.
fn div(self, rhs: u4lo) -> u4lo
[src]
Performs the /
operation.
impl Rem<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the %
operator.
fn rem(self, rhs: u4lo) -> u4lo
[src]
Performs the %
operation.
impl BitAnd<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the &
operator.
fn bitand(self, rhs: u4lo) -> u4lo
[src]
Performs the &
operation.
impl BitOr<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the |
operator.
fn bitor(self, rhs: u4lo) -> u4lo
[src]
Performs the |
operation.
impl BitXor<u4lo> for u4lo
[src]
type Output = u4lo
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: u4lo) -> u4lo
[src]
Performs the ^
operation.
impl Shl<u8> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u8) -> u4lo
[src]
Performs the <<
operation.
impl Shr<u8> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u8) -> u4lo
[src]
Performs the >>
operation.
impl Shl<u16> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u16) -> u4lo
[src]
Performs the <<
operation.
impl Shr<u16> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u16) -> u4lo
[src]
Performs the >>
operation.
impl Shl<u32> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u32) -> u4lo
[src]
Performs the <<
operation.
impl Shr<u32> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u32) -> u4lo
[src]
Performs the >>
operation.
impl Shl<u64> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: u64) -> u4lo
[src]
Performs the <<
operation.
impl Shr<u64> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: u64) -> u4lo
[src]
Performs the >>
operation.
impl Shl<usize> for u4lo
[src]
type Output = u4lo
The resulting type after applying the <<
operator.
fn shl(self, rhs: usize) -> u4lo
[src]
Performs the <<
operation.
impl Shr<usize> for u4lo
[src]
type Output = u4lo
The resulting type after applying the >>
operator.
fn shr(self, rhs: usize) -> u4lo
[src]
Performs the >>
operation.
impl Not for u4lo
[src]
type Output = u4lo
The resulting type after applying the !
operator.
fn not(self) -> u4lo
[src]
Performs the unary !
operation.
impl<'a> Not for &'a u4lo
[src]
type Output = u4lo
The resulting type after applying the !
operator.
fn not(self) -> u4lo
[src]
Performs the unary !
operation.
impl BitOr<u4hi> for u4lo
[src]
type Output = u4x2
The resulting type after applying the |
operator.
fn bitor(self, rhs: u4hi) -> u4x2
[src]
Performs the |
operation.
impl<'rhs> BitOr<&'rhs u4hi> for u4lo
[src]
type Output = u4x2
The resulting type after applying the |
operator.
fn bitor(self, rhs: &'rhs u4hi) -> u4x2
[src]
Performs the |
operation.
impl<'lhs> BitOr<u4hi> for &'lhs u4lo
[src]
type Output = u4x2
The resulting type after applying the |
operator.
fn bitor(self, rhs: u4hi) -> u4x2
[src]
Performs the |
operation.
impl<'rhs, 'lhs> BitOr<&'rhs u4hi> for &'lhs u4lo
[src]
type Output = u4x2
The resulting type after applying the |
operator.
fn bitor(self, rhs: &'rhs u4hi) -> u4x2
[src]
Performs the |
operation.
impl Copy for u4lo
[src]
impl Clone for u4lo
[src]
fn clone(&self) -> u4lo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl u4 for u4lo
[src]
fn from_hi(hi_and_lo: u8) -> Self
[src]
Constructs a nibble from the high-order bits the a given byte.
fn from_lo(hi_and_lo: u8) -> Self
[src]
Constructs a nibble from the low-order bits the a given byte.
fn from_repeated(hi_and_lo: u8) -> Self
[src]
Constructs a nibble from a byte with the same data in the high- and low-order bits.
fn to_hi(&self) -> u8
[src]
Converts this nibble into a byte with its high-order bits set and low-order bits zero.
fn to_lo(&self) -> u8
[src]
Converts this nibble into a byte with its low-order bits set and high-order bits zero.
fn try_from_hi(lo_and_hi: u8) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Tries to constructs a nibble from the high-order bits the a given byte. Read more
fn try_from_lo(lo_and_hi: u8) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Tries to constructs a nibble from the low-order bits the a given byte. Read more
fn to_repeated(&self) -> u8
[src]
Converts this nibble into a byte with the same data in the high- and low-order bits.
fn to_u4hi(&self) -> u4hi
[src]
Converts this nibble into a high-order version.
fn to_u4lo(&self) -> u4lo
[src]
Converts this nibble into a low-order version.
fn from_ascii_digit(b: u8) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Converts an ASCII hex digit into a nibble.
fn to_lower_ascii_digit(&self) -> u8
[src]
Converts a nibble into a lowercase ASCII hex digit.
fn to_upper_ascii_digit(&self) -> u8
[src]
Converts a nibble into an uppercase ASCII hex digit.
fn from_digit(c: char) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Converts a hex digit into a nibble.
fn to_lower_digit(&self) -> char
[src]
Converts a nibble into a lowercase hex digit.
fn to_upper_digit(&self) -> char
[src]
Converts a nibble into an uppercase hex digit.
fn to_lower_hex(&self) -> ArrayString<[u8; 1]>
[src]
Converts a nibble into a lowercase hex string.
fn to_upper_hex(&self) -> ArrayString<[u8; 1]>
[src]
Converts a nibble into an uppercase hex string.
fn from_ascii_binary(s: ArrayVec<[u8; 4]>) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Converts an ASCII binary string into a nibble.
fn from_binary(s: ArrayString<[u8; 4]>) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Converts an ASCII binary string into a nibble.
fn to_padded_binary(&self) -> ArrayString<[u8; 4]>
[src]
Converts a nibble into a 4-digit binary string.
fn to_binary(&self) -> ArrayString<[u8; 4]>
[src]
Converts a nibble into a binary string.
fn to_octal(&self) -> ArrayString<[u8; 2]>
[src]
Converts a nibble into an octal string.
fn to_decimal(&self) -> ArrayString<[u8; 2]>
[src]
Converts a nibble into a decimal string.
fn from_ascii_radix(s: &[u8], radix: u32) -> Result<Self, ParseNibbleError> where
Self: Sized,
[src]
Self: Sized,
Converts an ASCII string of the given radix into a nibble. Read more
fn from_str_radix(s: &str, radix: u32) -> Result<Self, ParseNibbleError> where
Self: Sized,
[src]
Self: Sized,
Converts a string of the given radix into a nibble. Read more