Struct fixed::FixedU128[][src]

#[repr(transparent)]
pub struct FixedU128<Frac: Unsigned>(_);

A 128-bit fixed-point unsigned integer with Frac fractional bits.

Currently Frac is an Unsigned as provided by the typenum crate; it is planned to move to const generics when they are implemented by the Rust compiler.

Examples

use fixed::frac::U3;
use fixed::FixedU128;
let eleven = FixedU128::<U3>::from_bits(11 << 3);
let five_half = eleven >> 1u32;
assert_eq!(eleven.to_string(), "11.0");
assert_eq!(five_half.to_string(), "5.5");

Methods

impl<Frac: Unsigned> FixedU128<Frac>
[src]

Returns the smallest value that can be represented.

Returns the largest value that can be represented.

Returns the number of integer bits.

Returns the number of fractional bits.

Creates a fixed-point number of type FixedU128 that has a bitwise representation identical to the u128 value.

Creates an integer of type u128 that has a bitwise representation identical to the FixedU128 value.

Creates a fixed-point number of type FixedU128 that has the same value as an integer of type u128 if it fits.

Examples

use fixed::frac;
use fixed::FixedU128;
type Fix = FixedU128<frac::U4>;
let fix_one = Fix::from_bits(1 << 4);
assert_eq!(Fix::from_int(1), Some(fix_one));
let too_large = 1 << (128 - 2);
assert_eq!(Fix::from_int(too_large), None);

Converts the fixed-point number of type FixedU128 to an integer of type u128 truncating the fractional bits.

Examples

use fixed::frac;
use fixed::FixedU128;
type Fix = FixedU128<frac::U4>;
let two_half = Fix::from_int(5).unwrap() / 2;
assert_eq!(two_half.to_int(), 2);

Converts the fixed-point number of type FixedU128 to an integer of type u128 rounding towards +∞.

Examples

use fixed::frac;
use fixed::FixedU128;
type Fix = FixedU128<frac::U4>;
let two_half = Fix::from_int(5).unwrap() / 2;
assert_eq!(two_half.to_int_ceil(), 3);

Converts the fixed-point number of type FixedU128 to an integer of type u128 rounding towards −∞.

Examples

use fixed::frac;
use fixed::FixedU128;
type Fix = FixedU128<frac::U4>;
let two_half = Fix::from_int(5).unwrap() / 2;
assert_eq!(two_half.to_int_floor(), 2);

Converts the fixed-point number of type FixedU128 to an integer of type u128 rounding towards −∞.

Examples

use fixed::frac;
use fixed::FixedU128;
type Fix = FixedU128<frac::U4>;
let two_half = Fix::from_int(5).unwrap() / 2;
assert_eq!(two_half.to_int_round(), 3);
let one_quarter = two_half / 2;
assert_eq!(one_quarter.to_int_round(), 1);

Returns the integer part.

Examples

use fixed::frac;
use fixed::FixedU128;
type Fix = FixedU128<frac::U4>;
// 0010.0000
let two = Fix::from_int(2).unwrap();
// 0010.0100
let two_and_quarter = two + two / 8;
assert_eq!(two_and_quarter.int(), two);

Returns the fractional part.

Examples

use fixed::frac;
use fixed::FixedU128;
type Fix = FixedU128<frac::U4>;
// 0000.0100
let quarter = Fix::from_int(1).unwrap() / 4;
// 0010.0100
let two_and_quarter = quarter * 9;
assert_eq!(two_and_quarter.frac(), quarter);

Converts the fixed-point number to f32.

Converts the fixed-point number to f64.

Returns the number of ones in the binary representation.

Returns the number of zeros in the binary representation.

Returns the number of leading zeros in the binary representation.

Returns the number of trailing zeros in the binary representation.

Shifts to the left by n bits, wrapping the truncated bits to the right end.

Shifts to the right by n bits, wrapping the truncated bits to the left end.

Checked negation.

Checked fixed-point addition.

Checked fixed-point subtraction.

Checked fixed-point multiplication.

Checked fixed-point division.

Checked fixed-point multiplication by integer.

Checked fixed-point division by integer.

Checked fixed-point remainder for division by integer.

Checked fixed-point left shift.

Checked fixed-point right shift.

Saturating fixed-point addition.

Saturating fixed-point subtraction.

Saturating fixed-point multiplication.

Saturating fixed-point division.

Saturating fixed-point multiplication by integer.

Wrapping negation.

Wrapping fixed-point addition.

Wrapping fixed-point subtraction.

Wrapping fixed-point multiplication.

Wrapping fixed-point division.

Wrapping fixed-point multiplication by integer.

Wrapping fixed-point division by integer.

Wrapping fixed-point remainder for division by integer.

Wrapping fixed-point left shift.

Wrapping fixed-point right shift.

Overflowing negation.

Overflowing fixed-point addition.

Overflowing fixed-point subtraction.

Overflowing fixed-point multiplication.

Overflowing fixed-point division.

Overflowing fixed-point multiplication by integer.

Overflowing fixed-point division by integer.

Overflowing fixed-point remainder for division by integer.

Overflowing fixed-point left shift.

Overflowing fixed-point right shift.

Returns true if the fixed-point number is 2k for some k.

Returns the smallest power of two ≥ self.

Returns the smallest power of two ≥ self, or None if the next power of two is too large to represent.

Trait Implementations

impl<Frac: Unsigned> Add<FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, Frac: Unsigned> Add<FixedU128<Frac>> for &'a FixedU128<Frac>
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, Frac: Unsigned> Add<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, 'b, Frac: Unsigned> Add<&'a FixedU128<Frac>> for &'b FixedU128<Frac>
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<Frac: Unsigned> AddAssign<FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the += operation.

impl<'a, Frac: Unsigned> AddAssign<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the += operation.

impl<Frac: Unsigned> Sub<FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, Frac: Unsigned> Sub<FixedU128<Frac>> for &'a FixedU128<Frac>
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, Frac: Unsigned> Sub<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, 'b, Frac: Unsigned> Sub<&'a FixedU128<Frac>> for &'b FixedU128<Frac>
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<Frac: Unsigned> SubAssign<FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the -= operation.

impl<'a, Frac: Unsigned> SubAssign<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the -= operation.

impl<Frac: Unsigned> Mul<FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, Frac: Unsigned> Mul<FixedU128<Frac>> for &'a FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, Frac: Unsigned> Mul<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, Frac: Unsigned> Mul<&'a FixedU128<Frac>> for &'b FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<Frac: Unsigned> MulAssign<FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the *= operation.

impl<'a, Frac: Unsigned> MulAssign<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the *= operation.

impl<Frac: Unsigned> Div<FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, Frac: Unsigned> Div<FixedU128<Frac>> for &'a FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, Frac: Unsigned> Div<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, 'b, Frac: Unsigned> Div<&'a FixedU128<Frac>> for &'b FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<Frac: Unsigned> DivAssign<FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the /= operation.

impl<'a, Frac: Unsigned> DivAssign<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the /= operation.

impl<Frac: Unsigned> Not for FixedU128<Frac>
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl<'a, Frac: Unsigned> Not for &'a FixedU128<Frac>
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl<Frac: Unsigned> BitAnd<FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<'a, Frac: Unsigned> BitAnd<FixedU128<Frac>> for &'a FixedU128<Frac>
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<'a, Frac: Unsigned> BitAnd<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<'a, 'b, Frac: Unsigned> BitAnd<&'a FixedU128<Frac>> for &'b FixedU128<Frac>
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<Frac: Unsigned> BitAndAssign<FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the &= operation.

impl<'a, Frac: Unsigned> BitAndAssign<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the &= operation.

impl<Frac: Unsigned> BitOr<FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<'a, Frac: Unsigned> BitOr<FixedU128<Frac>> for &'a FixedU128<Frac>
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<'a, Frac: Unsigned> BitOr<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<'a, 'b, Frac: Unsigned> BitOr<&'a FixedU128<Frac>> for &'b FixedU128<Frac>
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<Frac: Unsigned> BitOrAssign<FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the |= operation.

impl<'a, Frac: Unsigned> BitOrAssign<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the |= operation.

impl<Frac: Unsigned> BitXor<FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<'a, Frac: Unsigned> BitXor<FixedU128<Frac>> for &'a FixedU128<Frac>
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<'a, Frac: Unsigned> BitXor<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<'a, 'b, Frac: Unsigned> BitXor<&'a FixedU128<Frac>> for &'b FixedU128<Frac>
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<Frac: Unsigned> BitXorAssign<FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the ^= operation.

impl<'a, Frac: Unsigned> BitXorAssign<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Performs the ^= operation.

impl<Frac: Unsigned> Mul<u128> for FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<Frac: Unsigned> Mul<FixedU128<Frac>> for u128
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, Frac: Unsigned> Mul<u128> for &'a FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, Frac: Unsigned> Mul<&'a FixedU128<Frac>> for u128
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, Frac: Unsigned> Mul<&'a u128> for FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, Frac: Unsigned> Mul<FixedU128<Frac>> for &'a u128
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, Frac: Unsigned> Mul<&'a u128> for &'b FixedU128<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b, Frac: Unsigned> Mul<&'a FixedU128<Frac>> for &'b u128
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<Frac: Unsigned> MulAssign<u128> for FixedU128<Frac>
[src]

Performs the *= operation.

impl<'a, Frac: Unsigned> MulAssign<&'a u128> for FixedU128<Frac>
[src]

Performs the *= operation.

impl<Frac: Unsigned> Div<u128> for FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, Frac: Unsigned> Div<u128> for &'a FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, Frac: Unsigned> Div<&'a u128> for FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, 'b, Frac: Unsigned> Div<&'a u128> for &'b FixedU128<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<Frac: Unsigned> DivAssign<u128> for FixedU128<Frac>
[src]

Performs the /= operation.

impl<'a, Frac: Unsigned> DivAssign<&'a u128> for FixedU128<Frac>
[src]

Performs the /= operation.

impl<Frac: Unsigned> Rem<u128> for FixedU128<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a, Frac: Unsigned> Rem<u128> for &'a FixedU128<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a, Frac: Unsigned> Rem<&'a u128> for FixedU128<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a, 'b, Frac: Unsigned> Rem<&'a u128> for &'b FixedU128<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<Frac: Unsigned> RemAssign<u128> for FixedU128<Frac>
[src]

Performs the %= operation.

impl<'a, Frac: Unsigned> RemAssign<&'a u128> for FixedU128<Frac>
[src]

Performs the %= operation.

impl<Frac: Unsigned> Shl<i8> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<i8> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a i8> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a i8> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<i8> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a i8> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<i16> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<i16> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a i16> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a i16> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<i16> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a i16> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<i32> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<i32> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a i32> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a i32> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<i32> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a i32> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<i64> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<i64> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a i64> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a i64> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<i64> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a i64> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<i128> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<i128> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a i128> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a i128> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<i128> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a i128> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<isize> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<isize> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a isize> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a isize> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<isize> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a isize> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<u8> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<u8> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a u8> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a u8> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<u8> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a u8> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<u16> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<u16> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a u16> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a u16> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<u16> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a u16> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<u32> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<u32> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a u32> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a u32> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<u32> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a u32> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<u64> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<u64> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a u64> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a u64> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<u64> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a u64> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<u128> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<u128> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a u128> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a u128> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<u128> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a u128> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shl<usize> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<usize> for &'a FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, Frac: Unsigned> Shl<&'a usize> for FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<'a, 'b, Frac: Unsigned> Shl<&'a usize> for &'b FixedU128<Frac>
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<Frac: Unsigned> ShlAssign<usize> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<'a, Frac: Unsigned> ShlAssign<&'a usize> for FixedU128<Frac>
[src]

Performs the <<= operation.

impl<Frac: Unsigned> Shr<i8> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<i8> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a i8> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a i8> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<i8> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a i8> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<i16> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<i16> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a i16> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a i16> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<i16> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a i16> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<i32> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<i32> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a i32> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a i32> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<i32> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a i32> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<i64> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<i64> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a i64> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a i64> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<i64> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a i64> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<i128> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<i128> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a i128> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a i128> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<i128> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a i128> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<isize> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<isize> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a isize> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a isize> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<isize> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a isize> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<u8> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<u8> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a u8> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a u8> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<u8> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a u8> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<u16> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<u16> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a u16> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a u16> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<u16> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a u16> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<u32> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<u32> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a u32> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a u32> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<u32> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a u32> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<u64> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<u64> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a u64> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a u64> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<u64> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a u64> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<u128> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<u128> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a u128> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a u128> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<u128> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a u128> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Shr<usize> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<usize> for &'a FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, Frac: Unsigned> Shr<&'a usize> for FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<'a, 'b, Frac: Unsigned> Shr<&'a usize> for &'b FixedU128<Frac>
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

impl<Frac: Unsigned> ShrAssign<usize> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<'a, Frac: Unsigned> ShrAssign<&'a usize> for FixedU128<Frac>
[src]

Performs the >>= operation.

impl<Frac: Unsigned> Sum<FixedU128<Frac>> for FixedU128<Frac>
[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl<'a, Frac: Unsigned + 'a> Sum<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl<Frac: Unsigned> Product<FixedU128<Frac>> for FixedU128<Frac>
[src]

Method which takes an iterator and generates Self from the elements by multiplying the items. Read more

impl<'a, Frac: Unsigned + 'a> Product<&'a FixedU128<Frac>> for FixedU128<Frac>
[src]

Method which takes an iterator and generates Self from the elements by multiplying the items. Read more

impl<Frac: Unsigned> Eq for FixedU128<Frac>
[src]

impl<Frac: Unsigned, FracRhs: Unsigned> PartialEq<FixedU128<FracRhs>> for FixedU128<Frac>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Frac: Unsigned> PartialEq<u128> for FixedU128<Frac>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Frac: Unsigned> PartialEq<FixedU128<Frac>> for u128
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Frac: Unsigned> Ord for FixedU128<Frac>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<Frac: Unsigned, FracRhs: Unsigned> PartialOrd<FixedU128<FracRhs>> for FixedU128<Frac>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<Frac: Unsigned> PartialOrd<u128> for FixedU128<Frac>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<Frac: Unsigned> PartialOrd<FixedU128<Frac>> for u128
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<Frac: Unsigned> Display for FixedU128<Frac>
[src]

Formats the value using the given formatter. Read more

impl<Frac: Unsigned> Debug for FixedU128<Frac>
[src]

Formats the value using the given formatter. Read more

impl<Frac: Unsigned> Binary for FixedU128<Frac>
[src]

Formats the value using the given formatter.

impl<Frac: Unsigned> Octal for FixedU128<Frac>
[src]

Formats the value using the given formatter.

impl<Frac: Unsigned> LowerHex for FixedU128<Frac>
[src]

Formats the value using the given formatter.

impl<Frac: Unsigned> UpperHex for FixedU128<Frac>
[src]

Formats the value using the given formatter.

impl<Frac: Unsigned> Clone for FixedU128<Frac>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Frac: Unsigned> Copy for FixedU128<Frac>
[src]

impl<Frac: Unsigned> Default for FixedU128<Frac>
[src]

Returns the "default value" for a type. Read more

impl<Frac: Unsigned> Hash for FixedU128<Frac>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<Frac> Send for FixedU128<Frac> where
    Frac: Send

impl<Frac> Sync for FixedU128<Frac> where
    Frac: Sync