Struct fixed::FixedU32[][src]

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

A 32-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::FixedU32;
let eleven = FixedU32::<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> FixedU32<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 FixedU32 that has a bitwise representation identical to the u32 value.

Creates an integer of type u32 that has a bitwise representation identical to the FixedU32 value.

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

Examples

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

Converts the fixed-point number of type FixedU32 to an integer of type u32 truncating the fractional bits.

Examples

use fixed::frac;
use fixed::FixedU32;
type Fix = FixedU32<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 FixedU32 to an integer of type u32 rounding towards +∞.

Examples

use fixed::frac;
use fixed::FixedU32;
type Fix = FixedU32<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 FixedU32 to an integer of type u32 rounding towards −∞.

Examples

use fixed::frac;
use fixed::FixedU32;
type Fix = FixedU32<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 FixedU32 to an integer of type u32 rounding towards −∞.

Examples

use fixed::frac;
use fixed::FixedU32;
type Fix = FixedU32<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::FixedU32;
type Fix = FixedU32<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::FixedU32;
type Fix = FixedU32<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<FixedU32<Frac>> for FixedU32<Frac>
[src]

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

Performs the += operation.

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

Performs the += operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Performs the -= operation.

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

Performs the -= operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

Performs the *= operation.

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

Performs the *= operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

Performs the /= operation.

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

Performs the /= operation.

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

The resulting type after applying the ! operator.

Performs the unary ! operation.

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

The resulting type after applying the ! operator.

Performs the unary ! operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

Performs the &= operation.

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

Performs the &= operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

Performs the |= operation.

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

Performs the |= operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

Performs the ^= operation.

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

Performs the ^= operation.

impl<Frac: Unsigned> Mul<u32> for FixedU32<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<Frac: Unsigned> Mul<FixedU32<Frac>> for u32
[src]

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

impl<Frac: Unsigned> MulAssign<u32> for FixedU32<Frac>
[src]

Performs the *= operation.

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

Performs the *= operation.

impl<Frac: Unsigned> Div<u32> for FixedU32<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

impl<Frac: Unsigned> DivAssign<u32> for FixedU32<Frac>
[src]

Performs the /= operation.

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

Performs the /= operation.

impl<Frac: Unsigned> Rem<u32> for FixedU32<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a, Frac: Unsigned> Rem<u32> for &'a FixedU32<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a, Frac: Unsigned> Rem<&'a u32> for FixedU32<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

impl<Frac: Unsigned> RemAssign<u32> for FixedU32<Frac>
[src]

Performs the %= operation.

impl<'a, Frac: Unsigned> RemAssign<&'a u32> for FixedU32<Frac>
[src]

Performs the %= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

impl<Frac: Unsigned> Sum<FixedU32<Frac>> for FixedU32<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 FixedU32<Frac>> for FixedU32<Frac>
[src]

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

impl<Frac: Unsigned> Product<FixedU32<Frac>> for FixedU32<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 FixedU32<Frac>> for FixedU32<Frac>
[src]

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

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

impl<Frac: Unsigned, FracRhs: Unsigned> PartialEq<FixedU32<FracRhs>> for FixedU32<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<u32> for FixedU32<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<FixedU32<Frac>> for u32
[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 FixedU32<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<FixedU32<FracRhs>> for FixedU32<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<u32> for FixedU32<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<FixedU32<Frac>> for u32
[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 FixedU32<Frac>
[src]

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter.

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

Formats the value using the given formatter.

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

Formats the value using the given formatter.

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

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

impl<Frac: Unsigned> Hash for FixedU32<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 FixedU32<Frac> where
    Frac: Send

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