Struct fixed::FixedI32[][src]

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

A 32-bit fixed-point signed 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::FixedI32;
let eleven = FixedI32::<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> FixedI32<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 FixedI32 that has a bitwise representation identical to the i32 value.

Creates an integer of type i32 that has a bitwise representation identical to the FixedI32 value.

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

Examples

use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<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 FixedI32 to an integer of type i32 truncating the fractional bits.

Examples

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

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

Examples

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

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

Examples

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

Converts the fixed-point number of type FixedI32 to an integer of type i32 rounding towards the nearest. Ties are rounded away from zero.

Examples

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

Returns the integer part.

Note that since the numbers are stored in two’s complement, negative numbers with non-zero fractional parts will be rounded towards −∞, except in the case where there are no integer bits, that is FixedI32<U32>, where the return value is always zero.

Examples

use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<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);
// 1101.0000
let neg_three = Fix::from_int(-3).unwrap();
// 1101.1100
let neg_two_and_quarter = -two_and_quarter;
assert_eq!(neg_two_and_quarter.int(), neg_three);

Returns the fractional part.

Note that since the numbers are stored in two’s complement, the returned fraction will be non-negative for negative numbers, except in the case where there are no integer bits, that is FixedI32<U32>, where the return value is always equal to self.

Examples

use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<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);
// 0000.1100
let three_quarters = quarter * 3;
// 1101.1100
let neg_two_and_quarter = -two_and_quarter;
assert_eq!(neg_two_and_quarter.frac(), three_quarters);

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.

Checked absolute value.

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.

Wrapping absolute value.

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.

Overflowing absolute value.

Returns the absolute value of two ≥ self.

Returns a number representing the sign of self.

Trait Implementations

impl<Frac: Unsigned> Neg for FixedI32<Frac>
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl<'a, Frac: Unsigned> Neg for &'a FixedI32<Frac>
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

Performs the += operation.

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

Performs the += operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Performs the -= operation.

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

Performs the -= operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

Performs the *= operation.

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

Performs the *= operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

Performs the /= operation.

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

Performs the /= operation.

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

The resulting type after applying the ! operator.

Performs the unary ! operation.

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

The resulting type after applying the ! operator.

Performs the unary ! operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

The resulting type after applying the & operator.

Performs the & operation.

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

Performs the &= operation.

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

Performs the &= operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

The resulting type after applying the | operator.

Performs the | operation.

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

Performs the |= operation.

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

Performs the |= operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

The resulting type after applying the ^ operator.

Performs the ^ operation.

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

Performs the ^= operation.

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

Performs the ^= operation.

impl<Frac: Unsigned> Mul<i32> for FixedI32<Frac>
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<Frac: Unsigned> Mul<FixedI32<Frac>> for i32
[src]

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the * operator.

Performs the * operation.

impl<Frac: Unsigned> MulAssign<i32> for FixedI32<Frac>
[src]

Performs the *= operation.

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

Performs the *= operation.

impl<Frac: Unsigned> Div<i32> for FixedI32<Frac>
[src]

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

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

The resulting type after applying the / operator.

Performs the / operation.

impl<Frac: Unsigned> DivAssign<i32> for FixedI32<Frac>
[src]

Performs the /= operation.

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

Performs the /= operation.

impl<Frac: Unsigned> Rem<i32> for FixedI32<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a, Frac: Unsigned> Rem<i32> for &'a FixedI32<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<'a, Frac: Unsigned> Rem<&'a i32> for FixedI32<Frac>
[src]

The resulting type after applying the % operator.

Performs the % operation.

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

The resulting type after applying the % operator.

Performs the % operation.

impl<Frac: Unsigned> RemAssign<i32> for FixedI32<Frac>
[src]

Performs the %= operation.

impl<'a, Frac: Unsigned> RemAssign<&'a i32> for FixedI32<Frac>
[src]

Performs the %= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

The resulting type after applying the << operator.

Performs the << operation.

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

Performs the <<= operation.

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

Performs the <<= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

The resulting type after applying the >> operator.

Performs the >> operation.

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

Performs the >>= operation.

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

Performs the >>= operation.

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

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

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

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

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

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter.

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

Formats the value using the given formatter.

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

Formats the value using the given formatter.

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

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

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

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