Struct fixed::FixedI32

source ·
#[repr(transparent)]
pub struct FixedI32<Frac>(_)
where
    Frac: Unsigned + IsLessOrEqual<U32, Output = True>
;
Expand description

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");

Implementations

Returns the smallest value that can be represented.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
assert_eq!(Fix::min_value(), Fix::from_bits(i32::min_value()));

Returns the smallest value that can be represented.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
assert_eq!(Fix::max_value(), Fix::from_bits(i32::max_value()));

Returns the number of integer bits.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U6>;
assert_eq!(Fix::int_bits(), 32 - 6);

Returns the number of fractional bits.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U6>;
assert_eq!(Fix::frac_bits(), 6);

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

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
// 0010.0000 == 2
assert_eq!(Fix::from_bits(0b10_0000), 2);

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

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
let two = Fix::from_int(2).unwrap();
// two is 0010.0000
assert_eq!(two.to_bits(), 0b10_0000);

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);

Creates a fixed-point number from f16.

This method rounds to the nearest, with ties rounding to even.

This method is only available when the f16 feature is enabled.

Examples
extern crate fixed;
extern crate half;
use fixed::frac;
use fixed::FixedI32;
use half::f16;
type Fix = FixedI32<frac::U4>;
// 1.75 is 0001.1100, that is from_bits(28)
let val = f16::from_f32(1.75);
let neg_val = f16::from_f32(-1.75);
assert_eq!(Fix::from_f16(val), Some(Fix::from_bits(28)));
assert_eq!(Fix::from_f16(neg_val), Some(Fix::from_bits(-28)));
// 1e-2 is too small for four fractional bits
let small = f16::from_f32(1e-2);
let neg_small = f16::from_f32(-1e-2);
assert_eq!(Fix::from_f16(small), Some(Fix::from_bits(0)));
assert_eq!(Fix::from_f16(neg_small), Some(Fix::from_bits(0)));

Creates a fixed-point number from f32.

This method rounds to the nearest, with ties rounding to even.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
// 1.75 is 0001.1100, that is from_bits(28)
assert_eq!(Fix::from_f32(1.75), Some(Fix::from_bits(28)));
assert_eq!(Fix::from_f32(-1.75), Some(Fix::from_bits(-28)));
// 1e-10 is too small for four fractional bits
assert_eq!(Fix::from_f32(1e-10), Some(Fix::from_bits(0)));
assert_eq!(Fix::from_f32(-1e-10), Some(Fix::from_bits(0)));
// 2e38 is too large for FixedI32<frac::U4>
assert!(Fix::from_f32(2e38).is_none());
assert!(Fix::from_f32(-2e38).is_none());

Creates a fixed-point number from f64.

This method rounds to the nearest, with ties rounding to even.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
// 1.75 is 0001.1100, that is from_bits(28)
assert_eq!(Fix::from_f64(1.75), Some(Fix::from_bits(28)));
assert_eq!(Fix::from_f64(-1.75), Some(Fix::from_bits(-28)));
// 1e-10 is too small for four fractional bits
assert_eq!(Fix::from_f64(1e-10), Some(Fix::from_bits(0)));
assert_eq!(Fix::from_f64(-1e-10), Some(Fix::from_bits(0)));
// 2e38 is too large for FixedI32<frac::U4>
assert!(Fix::from_f64(2e38).is_none());
assert!(Fix::from_f64(-2e38).is_none());

Converts the fixed-point number to f16.

This method rounds to the nearest, with ties rounding to even.

This method is only available when the f16 feature is enabled.

Examples
extern crate fixed;
extern crate half;
use fixed::frac;
use fixed::FixedI32;
use half::f16;
type Fix = FixedI32<frac::U4>;
// 1.75 is 0001.1100, that is from_bits(28)
let val = f16::from_f32(1.75);
let neg_val = f16::from_f32(-1.75);
assert_eq!(Fix::from_bits(28).to_f16(), val);
assert_eq!(Fix::from_bits(-28).to_f16(), neg_val);

Converts the fixed-point number to f32.

This method rounds to the nearest, with ties rounding to even.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
// 1.75 is 0001.1100, that is from_bits(28)
assert_eq!(Fix::from_bits(28).to_f32(), 1.75);
assert_eq!(Fix::from_bits(-28).to_f32(), -1.75);

Converts the fixed-point number to f64.

This method rounds to the nearest, with ties rounding to even.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
// 1.75 is 0001.1100, that is from_bits(28)
assert_eq!(Fix::from_bits(28).to_f64(), 1.75);
assert_eq!(Fix::from_bits(-28).to_f64(), -1.75);

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);

Returns the number of ones in the binary representation.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
let f = Fix::from_bits(0b11_0010);
assert_eq!(f.count_ones(), 3);

Returns the number of zeros in the binary representation.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
let f = Fix::from_bits(!0b11_0010);
assert_eq!(f.count_zeros(), 3);

Returns the number of leading zeros in the binary representation.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
let f = Fix::from_bits(0b10_0000);
assert_eq!(f.leading_zeros(), 32 - 6);

Returns the number of trailing zeros in the binary representation.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
let f = Fix::from_bits(0b10_0000);
assert_eq!(f.trailing_zeros(), 5);

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

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
let bits: i32 = (0b111 << (32 - 3)) | 0b1010;
let rot = 0b1010111;
assert_eq!(bits.rotate_left(3), rot);
assert_eq!(Fix::from_bits(bits).rotate_left(3), Fix::from_bits(rot));

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

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
let bits: i32 = 0b1010111;
let rot = (0b111 << (32 - 3)) | 0b1010;
assert_eq!(bits.rotate_right(3), rot);
assert_eq!(Fix::from_bits(bits).rotate_right(3), Fix::from_bits(rot));

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.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
assert_eq!(Fix::from_int(5).unwrap().abs(), Fix::from_int(5).unwrap());
assert_eq!(Fix::from_int(-5).unwrap().abs(), Fix::from_int(5).unwrap());

Returns a number representing the sign of self.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
assert_eq!(Fix::from_int(5).unwrap().signum(), Fix::from_int(1).unwrap());
assert_eq!(Fix::from_int(0).unwrap().signum(), Fix::from_int(0).unwrap());
assert_eq!(Fix::from_int(-5).unwrap().signum(), Fix::from_int(-1).unwrap());

Returns true if the number is > 0.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
assert!(Fix::from_int(5).unwrap().is_positive());
assert!(!Fix::from_int(0).unwrap().is_positive());
assert!(!Fix::from_int(-5).unwrap().is_positive());

Returns true if the number is < 0.

Examples
use fixed::frac;
use fixed::FixedI32;
type Fix = FixedI32<frac::U4>;
assert!(!Fix::from_int(5).unwrap().is_negative());
assert!(!Fix::from_int(0).unwrap().is_negative());
assert!(Fix::from_int(-5).unwrap().is_negative());

Trait Implementations

The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
Performs the += operation. Read more
Performs the += operation. Read more
Formats the value using the given formatter.
The resulting type after applying the & operator.
Performs the & operation. Read more
The resulting type after applying the & operator.
Performs the & operation. Read more
The resulting type after applying the & operator.
Performs the & operation. Read more
The resulting type after applying the & operator.
Performs the & operation. Read more
Performs the &= operation. Read more
Performs the &= operation. Read more
The resulting type after applying the | operator.
Performs the | operation. Read more
The resulting type after applying the | operator.
Performs the | operation. Read more
The resulting type after applying the | operator.
Performs the | operation. Read more
The resulting type after applying the | operator.
Performs the | operation. Read more
Performs the |= operation. Read more
Performs the |= operation. Read more
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
Performs the ^= operation. Read more
Performs the ^= operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
The resulting type after applying the / operator.
Performs the / operation. Read more
Performs the /= operation. Read more
Performs the /= operation. Read more
Performs the /= operation. Read more
Performs the /= operation. Read more
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
Formats the value using the given formatter.
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
Performs the *= operation. Read more
Performs the *= operation. Read more
Performs the *= operation. Read more
Performs the *= operation. Read more
The resulting type after applying the - operator.
Performs the unary - operation. Read more
The resulting type after applying the - operator.
Performs the unary - operation. Read more
The resulting type after applying the ! operator.
Performs the unary ! operation. Read more
The resulting type after applying the ! operator.
Performs the unary ! operation. Read more
Formats the value using the given formatter.
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
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
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
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
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
Method which takes an iterator and generates Self from the elements by multiplying the items. Read more
Method which takes an iterator and generates Self from the elements by multiplying the items. Read more
The resulting type after applying the % operator.
Performs the % operation. Read more
The resulting type after applying the % operator.
Performs the % operation. Read more
The resulting type after applying the % operator.
Performs the % operation. Read more
The resulting type after applying the % operator.
Performs the % operation. Read more
Performs the %= operation. Read more
Performs the %= operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
The resulting type after applying the << operator.
Performs the << operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
Performs the <<= operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
The resulting type after applying the >> operator.
Performs the >> operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
Performs the >>= operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
Performs the -= operation. Read more
Performs the -= operation. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more
Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.