pub struct FixedU16<Frac> { /* private fields */ }
Expand description

A 16-bit fixed-point unsigned number 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 substrate_fixed::{types::extra::U3, FixedU16};
let eleven = FixedU16::<U3>::from_num(11);
assert_eq!(eleven, FixedU16::<U3>::from_bits(11 << 3));
assert_eq!(eleven, 11);
assert_eq!(eleven.to_string(), "11");
let two_point_75 = eleven / 4;
assert_eq!(two_point_75, FixedU16::<U3>::from_bits(11 << 1));
assert_eq!(two_point_75, 2.75);
assert_eq!(two_point_75.to_string(), "2.8");

Implementations§

source§

impl<Frac> FixedU16<Frac>

source

pub const fn min_value() -> FixedU16<Frac>

Returns the smallest value that can be represented.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::min_value(), Fix::from_bits(u16::min_value()));
source

pub const fn max_value() -> FixedU16<Frac>

Returns the largest value that can be represented.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::max_value(), Fix::from_bits(u16::max_value()));
source

pub const fn from_bits(bits: u16) -> FixedU16<Frac>

Creates a fixed-point number that has a bitwise representation identical to the given integer.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 0010.0000 == 2
assert_eq!(Fix::from_bits(0b10_0000), 2);
source

pub const fn to_bits(self) -> u16

Creates an integer that has a bitwise representation identical to the given fixed-point number.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 2 is 0010.0000
assert_eq!(Fix::from_num(2).to_bits(), 0b10_0000);
source

pub fn from_be_bytes(bytes: [u8; 2]) -> FixedU16<Frac>

Creates a fixed-point number from its representation as a byte array in big endian.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(
    Fix::from_be_bytes([0x12, 0x34]),
    Fix::from_bits(0x1234)
);
source

pub fn from_le_bytes(bytes: [u8; 2]) -> FixedU16<Frac>

Creates a fixed-point number from its representation as a byte array in little endian.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(
    Fix::from_le_bytes([0x34, 0x12]),
    Fix::from_bits(0x1234)
);
source

pub fn from_ne_bytes(bytes: [u8; 2]) -> FixedU16<Frac>

Creates a fixed-point number from its representation as a byte array in native endian.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(
    if cfg!(target_endian = "big") {
        Fix::from_ne_bytes([0x12, 0x34])
    } else {
        Fix::from_ne_bytes([0x34, 0x12])
    },
    Fix::from_bits(0x1234)
);
source

pub fn to_be_bytes(self) -> [u8; 2]

Returns the memory representation of this fixed-point number as a byte array in big-endian byte order.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let val = Fix::from_bits(0x1234);
assert_eq!(
    val.to_be_bytes(),
    [0x12, 0x34]
);
source

pub fn to_le_bytes(self) -> [u8; 2]

Returns the memory representation of this fixed-point number as a byte array in little-endian byte order.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let val = Fix::from_bits(0x1234);
assert_eq!(
    val.to_le_bytes(),
    [0x34, 0x12]
);
source

pub fn to_ne_bytes(self) -> [u8; 2]

Returns the memory representation of this fixed-point number as a byte array in native byte order.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let val = Fix::from_bits(0x1234);
assert_eq!(
    val.to_ne_bytes(),
    if cfg!(target_endian = "big") {
        [0x12, 0x34]
    } else {
        [0x34, 0x12]
    }
);
source

pub const fn count_ones(self) -> u32

Returns the number of ones in the binary representation.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let f = Fix::from_bits(0b11_0010);
assert_eq!(f.count_ones(), 3);
source

pub const fn count_zeros(self) -> u32

Returns the number of zeros in the binary representation.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let f = Fix::from_bits(!0b11_0010);
assert_eq!(f.count_zeros(), 3);
source

pub const fn leading_zeros(self) -> u32

Returns the number of leading zeros in the binary representation.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let f = Fix::from_bits(0b10_0000);
assert_eq!(f.leading_zeros(), 16 - 6);
source

pub const fn trailing_zeros(self) -> u32

Returns the number of trailing zeros in the binary representation.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let f = Fix::from_bits(0b10_0000);
assert_eq!(f.trailing_zeros(), 5);
source

pub const fn rotate_left(self, n: u32) -> FixedU16<Frac>

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

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let bits: u16 = (0b111 << (16 - 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));
source

pub const fn rotate_right(self, n: u32) -> FixedU16<Frac>

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

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let bits: u16 = 0b1010111;
let rot = (0b111 << (16 - 3)) | 0b1010;
assert_eq!(bits.rotate_right(3), rot);
assert_eq!(Fix::from_bits(bits).rotate_right(3), Fix::from_bits(rot));
source

pub const fn is_power_of_two(self) -> bool

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

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 3/8 is 0.0110
let three_eights = Fix::from_bits(0b0110);
// 1/2 is 0.1000
let half = Fix::from_bits(0b1000);
assert!(!three_eights.is_power_of_two());
assert!(half.is_power_of_two());
source

pub fn rem_euclid(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Remainder for Euclidean division.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).rem_euclid(Fix::from_num(2)), Fix::from_num(1.5));
source

pub fn next_power_of_two(self) -> FixedU16<Frac>

Returns the smallest power of two that is ≥ self.

Panics

When debug assertions are enabled, panics if the next power of two is too large to represent. When debug assertions are not enabled, zero can be returned, but it is not considered a breaking change if in the future it panics; if this is not desirable use checked_next_power_of_two instead.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 3/8 is 0.0110
let three_eights = Fix::from_bits(0b0110);
// 1/2 is 0.1000
let half = Fix::from_bits(0b1000);
assert_eq!(three_eights.next_power_of_two(), half);
assert_eq!(half.next_power_of_two(), half);
source

pub fn checked_neg(self) -> Option<FixedU16<Frac>>

Checked negation. Returns the negated value, or None on overflow.

Only zero can be negated without overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(0).checked_neg(), Some(Fix::from_num(0)));
assert_eq!(Fix::from_num(5).checked_neg(), None);
source

pub fn checked_add(self, rhs: FixedU16<Frac>) -> Option<FixedU16<Frac>>

Checked addition. Returns the sum, or None on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one = Fix::from_num(1);
assert_eq!((Fix::max_value() - one).checked_add(one), Some(Fix::max_value()));
assert_eq!(Fix::max_value().checked_add(one), None);
source

pub fn checked_sub(self, rhs: FixedU16<Frac>) -> Option<FixedU16<Frac>>

Checked subtraction. Returns the difference, or None on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one = Fix::from_num(1);
assert_eq!((Fix::min_value() + one).checked_sub(one), Some(Fix::min_value()));
assert_eq!(Fix::min_value().checked_sub(one), None);
source

pub fn checked_rem(self, rhs: FixedU16<Frac>) -> Option<FixedU16<Frac>>

Checked remainder. Returns the remainder, or None if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(1.5).checked_rem(Fix::from_num(1)), Some(Fix::from_num(0.5)));
assert_eq!(Fix::from_num(1.5).checked_rem(Fix::from_num(0)), None);
source

pub fn checked_mul_int(self, rhs: u16) -> Option<FixedU16<Frac>>

Checked multiplication by an integer. Returns the product, or None on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::max_value().checked_mul_int(1), Some(Fix::max_value()));
assert_eq!(Fix::max_value().checked_mul_int(2), None);
source

pub fn checked_div_int(self, rhs: u16) -> Option<FixedU16<Frac>>

Checked division by an integer. Returns the quotient, or None if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::max_value().checked_div_int(1), Some(Fix::max_value()));
assert_eq!(Fix::from_num(1).checked_div_int(0), None);
source

pub fn checked_rem_euclid(self, rhs: FixedU16<Frac>) -> Option<FixedU16<Frac>>

Checked remainder for Euclidean division. Returns the remainder, or None if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let num = Fix::from_num(7.5);
assert_eq!(num.checked_rem_euclid(Fix::from_num(2)), Some(Fix::from_num(1.5)));
assert_eq!(num.checked_rem_euclid(Fix::from_num(0)), None);
source

pub fn checked_shl(self, rhs: u32) -> Option<FixedU16<Frac>>

Checked shift left. Returns the shifted number, or None if rhs ≥ 16.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!((Fix::from_num(1) / 2).checked_shl(3), Some(Fix::from_num(4)));
assert_eq!((Fix::from_num(1) / 2).checked_shl(16), None);
source

pub fn checked_shr(self, rhs: u32) -> Option<FixedU16<Frac>>

Checked shift right. Returns the shifted number, or None if rhs ≥ 16.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(4).checked_shr(3), Some(Fix::from_num(1) / 2));
assert_eq!(Fix::from_num(4).checked_shr(16), None);
source

pub fn checked_next_power_of_two(self) -> Option<FixedU16<Frac>>

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

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 3/8 is 0.0110
let three_eights = Fix::from_bits(0b0110);
// 1/2 is 0.1000
let half = Fix::from_bits(0b1000);
assert_eq!(three_eights.checked_next_power_of_two(), Some(half));
assert!(Fix::max_value().checked_next_power_of_two().is_none());
source

pub const fn saturating_neg(self) -> FixedU16<Frac>

Saturating negation. Returns the negated value, saturating on overflow.

This method always returns zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(0).saturating_neg(), Fix::from_num(0));
assert_eq!(Fix::from_num(5).saturating_neg(), Fix::from_num(0));
source

pub const fn saturating_add(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Saturating addition. Returns the sum, saturating on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3).saturating_add(Fix::from_num(2)), Fix::from_num(5));
assert_eq!(Fix::max_value().saturating_add(Fix::from_num(1)), Fix::max_value());
source

pub const fn saturating_sub(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Saturating subtraction. Returns the difference, saturating on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(5).saturating_sub(Fix::from_num(3)), Fix::from_num(2));
assert_eq!(Fix::from_num(0).saturating_sub(Fix::from_num(1)), Fix::from_num(0));
source

pub const fn saturating_mul_int(self, rhs: u16) -> FixedU16<Frac>

Saturating multiplication by an integer. Returns the product, saturating on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3).saturating_mul_int(2), Fix::from_num(6));
assert_eq!(Fix::max_value().saturating_mul_int(2), Fix::max_value());
source

pub const fn wrapping_neg(self) -> FixedU16<Frac>

Wrapping negation. Returns the negated value, wrapping on overflow.

Only zero can be negated without overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(0).wrapping_neg(), Fix::from_num(0));
assert_eq!(Fix::from_num(5).wrapping_neg(), Fix::wrapping_from_num(-5));
let neg_five_bits = !Fix::from_num(5).to_bits() + 1;
assert_eq!(Fix::from_num(5).wrapping_neg(), Fix::from_bits(neg_five_bits));
source

pub const fn wrapping_add(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Wrapping addition. Returns the sum, wrapping on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one = Fix::from_num(1);
let one_minus_bit = one - Fix::from_bits(1);
assert_eq!(Fix::from_num(3).wrapping_add(Fix::from_num(2)), Fix::from_num(5));
assert_eq!(Fix::max_value().wrapping_add(one), one_minus_bit);
source

pub const fn wrapping_sub(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Wrapping subtraction. Returns the difference, wrapping on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one = Fix::from_num(1);
let one_minus_bit = one - Fix::from_bits(1);
assert_eq!(Fix::from_num(5).wrapping_sub(Fix::from_num(3)), Fix::from_num(2));
assert_eq!(Fix::from_num(0).wrapping_sub(one), Fix::max_value() - one_minus_bit);
source

pub const fn wrapping_mul_int(self, rhs: u16) -> FixedU16<Frac>

Wrapping multiplication by an integer. Returns the product, wrapping on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3).wrapping_mul_int(2), Fix::from_num(6));
let wrapped = Fix::from_bits(!0 << 2);
assert_eq!(Fix::max_value().wrapping_mul_int(4), wrapped);
source

pub fn wrapping_div_int(self, rhs: u16) -> FixedU16<Frac>

Wrapping division by an integer. Returns the quotient.

Can never overflow for unsigned values.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 1.5 is binary 1.1
let one_point_5 = Fix::from_bits(0b11 << (4 - 1));
assert_eq!(Fix::from_num(3).wrapping_div_int(2), one_point_5);
source

pub const fn wrapping_shl(self, rhs: u32) -> FixedU16<Frac>

Wrapping shift left. Wraps rhs if rhs ≥ 16, then shifts and returns the number.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!((Fix::from_num(1) / 2).wrapping_shl(3), Fix::from_num(4));
assert_eq!((Fix::from_num(1) / 2).wrapping_shl(3 + 16), Fix::from_num(4));
source

pub const fn wrapping_shr(self, rhs: u32) -> FixedU16<Frac>

Wrapping shift right. Wraps rhs if rhs ≥ 16, then shifts and returns the number.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!((Fix::from_num(4)).wrapping_shr(3), Fix::from_num(1) / 2);
assert_eq!((Fix::from_num(4)).wrapping_shr(3 + 16), Fix::from_num(1) / 2);
source

pub const fn overflowing_neg(self) -> (FixedU16<Frac>, bool)

Overflowing negation.

Returns a tuple of the negated value and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Only zero can be negated without overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(0).overflowing_neg(), (Fix::from_num(0), false));
assert_eq!(Fix::from_num(5).overflowing_neg(), Fix::overflowing_from_num(-5));
let neg_five_bits = !Fix::from_num(5).to_bits() + 1;
assert_eq!(Fix::from_num(5).overflowing_neg(), (Fix::from_bits(neg_five_bits), true));
source

pub const fn overflowing_add( self, rhs: FixedU16<Frac> ) -> (FixedU16<Frac>, bool)

Overflowing addition.

Returns a tuple of the sum and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one = Fix::from_num(1);
let one_minus_bit = one - Fix::from_bits(1);
assert_eq!(Fix::from_num(3).overflowing_add(Fix::from_num(2)), (Fix::from_num(5), false));
assert_eq!(Fix::max_value().overflowing_add(one), (one_minus_bit, true));
source

pub const fn overflowing_sub( self, rhs: FixedU16<Frac> ) -> (FixedU16<Frac>, bool)

Overflowing subtraction.

Returns a tuple of the difference and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one = Fix::from_num(1);
let one_minus_bit = one - Fix::from_bits(1);
assert_eq!(Fix::from_num(5).overflowing_sub(Fix::from_num(3)), (Fix::from_num(2), false));
assert_eq!(Fix::from_num(0).overflowing_sub(one), (Fix::max_value() - one_minus_bit, true));
source

pub const fn overflowing_mul_int(self, rhs: u16) -> (FixedU16<Frac>, bool)

Overflowing multiplication by an integer.

Returns a tuple of the product and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3).overflowing_mul_int(2), (Fix::from_num(6), false));
let wrapped = Fix::from_bits(!0 << 2);
assert_eq!(Fix::max_value().overflowing_mul_int(4), (wrapped, true));
source

pub fn overflowing_div_int(self, rhs: u16) -> (FixedU16<Frac>, bool)

Overflowing division by an integer.

Returns a tuple of the quotient and false, as the division can never overflow for unsigned values.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 1.5 is binary 1.1
let one_point_5 = Fix::from_bits(0b11 << (4 - 1));
assert_eq!(Fix::from_num(3).overflowing_div_int(2), (one_point_5, false));
source

pub const fn overflowing_shl(self, rhs: u32) -> (FixedU16<Frac>, bool)

Overflowing shift left.

Returns a tuple of the shifted value and a bool indicating whether an overflow has occurred. Overflow occurs when rhs ≥ 16. On overflow rhs is wrapped before the shift operation.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!((Fix::from_num(1) / 2).overflowing_shl(3), (Fix::from_num(4), false));
assert_eq!((Fix::from_num(1) / 2).overflowing_shl(3 + 16), (Fix::from_num(4), true));
source

pub const fn overflowing_shr(self, rhs: u32) -> (FixedU16<Frac>, bool)

Overflowing shift right.

Returns a tuple of the shifted value and a bool indicating whether an overflow has occurred. Overflow occurs when rhs ≥ 16. On overflow rhs is wrapped before the shift operation.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!((Fix::from_num(4)).overflowing_shr(3), (Fix::from_num(1) / 2, false));
assert_eq!((Fix::from_num(4)).overflowing_shr(3 + 16), (Fix::from_num(1) / 2, true));
source§

impl<Frac: LeEqU16> FixedU16<Frac>

source

pub const INT_NBITS: u32 = _

The number of integer bits.

Examples
use substrate_fixed::{types::extra::U6, FixedU16};
type Fix = FixedU16<U6>;
assert_eq!(Fix::INT_NBITS, 16 - 6);
source

pub const FRAC_NBITS: u32 = Frac::U32

The number of fractional bits.

Examples
use substrate_fixed::{types::extra::U6, FixedU16};
type Fix = FixedU16<U6>;
assert_eq!(Fix::FRAC_NBITS, 6);
source

pub fn int_nbits() -> u32

Returns the number of integer bits.

Examples
use substrate_fixed::{types::extra::U6, FixedU16};
type Fix = FixedU16<U6>;
assert_eq!(Fix::int_nbits(), 16 - 6);
source

pub fn frac_nbits() -> u32

Returns the number of fractional bits.

Examples
use substrate_fixed::{types::extra::U6, FixedU16};
type Fix = FixedU16<U6>;
assert_eq!(Fix::frac_nbits(), 6);
source

pub fn from_num<Src: ToFixed>(src: Src) -> FixedU16<Frac>

Creates a fixed-point number from another number.

The other number can be:

  • Another fixed-point number. Any extra fractional bits are truncated.
  • An integer of type i8, i16, i32, i64, i128, isize, u8, u16, u32, u64, u128, or usize.
  • A floating-point number of type f32 or f64. If the f16 feature is enabled, it can also be of type f16 or bf16. For this conversion, the method rounds to the nearest, with ties rounding to even.
  • Any other number src for which ToFixed is implemented, in which case this method returns src.to_fixed().
Panics

For floating-point numbers, panics if the value is not finite.

When debug assertions are enabled, panics if the value does not fit. When debug assertions are not enabled, the wrapped value can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_from_num instead.

Examples
use substrate_fixed::{types::extra::U4, types::I16F16, FixedU16};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(Fix::from_num(src), Fix::from_bits(0b111 << (4 - 2)));

assert_eq!(Fix::from_num(3i32), Fix::from_bits(3 << 4));
assert_eq!(Fix::from_num(3i64), Fix::from_bits(3 << 4));

assert_eq!(Fix::from_num(1.75f32), Fix::from_bits(0b111 << (4 - 2)));
assert_eq!(Fix::from_num(1.75f64), Fix::from_bits(0b111 << (4-2)));
source

pub fn to_num<Dst: FromFixed>(self) -> Dst

Converts a fixed-point number to another number.

The other number can be:

  • Another fixed-point number. Any extra fractional bits are truncated.
  • An integer of type i8, i16, i32, i64, i128, isize, u8, u16, u32, u64, u128, or usize. Any fractional bits are truncated.
  • A floating-point number of type f32 or f64. If the f16 feature is enabled, it can also be of type f16 or bf16. For this conversion, the method rounds to the nearest, with ties rounding to even.
  • Any other type Dst for which FromFixed is implemented, in which case this method returns Dst::from_fixed(self).
Panics

When debug assertions are enabled, panics if the value does not fit. When debug assertions are not enabled, the wrapped value can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_to_num instead.

Examples
use substrate_fixed::{types::extra::U4, types::I30F2, FixedU16};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(src.to_num::<I30F2>(), I30F2::from_bits(0b111));
// src >> 2 is 0.0111, which for I30F2 is truncated to 0.01
assert_eq!((src >> 2u32).to_num::<I30F2>(), I30F2::from_bits(1));

// 2.5 is 10.1 in binary
let two_point_5 = Fix::from_bits(0b101 << (4 - 1));
assert_eq!(two_point_5.to_num::<i32>(), 2);
assert_eq!(two_point_5.to_num::<i64>(), 2);

// 1.625 is 1.101 in binary
let one_point_625 = Fix::from_bits(0b1101 << (4 - 3));
assert_eq!(one_point_625.to_num::<f32>(), 1.625f32);
assert_eq!(one_point_625.to_num::<f64>(), 1.625f64);
source

pub fn checked_from_num<Src: ToFixed>(src: Src) -> Option<FixedU16<Frac>>

Creates a fixed-point number from another number if it fits, otherwise returns None.

The other number can be:

Examples
use substrate_fixed::{
    types::extra::{U2, U4},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(Fix::checked_from_num(src), Some(Fix::from_bits(0b111 << (4 - 2))));
let too_large = FixedU16::<U2>::max_value();
assert!(Fix::checked_from_num(too_large).is_none());

assert_eq!(Fix::checked_from_num(3), Some(Fix::from_bits(3 << 4)));
let too_large = u16::max_value();
assert!(Fix::checked_from_num(too_large).is_none());
let too_small = -1;
assert!(Fix::checked_from_num(too_small).is_none());

// 1.75 is 1.11 in binary
let expected = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(Fix::checked_from_num(1.75f32), Some(expected));
assert_eq!(Fix::checked_from_num(1.75f64), Some(expected));
assert!(Fix::checked_from_num(2e38).is_none());
assert!(Fix::checked_from_num(std::f64::NAN).is_none());
source

pub fn checked_to_num<Dst: FromFixed>(self) -> Option<Dst>

Converts a fixed-point number to another number if it fits, otherwise returns None.

The other number can be:

Examples
use substrate_fixed::{
    types::extra::{U0, U4, U6},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = Fix::from_bits(0b111 << (4 - 2));
let expected = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(src.checked_to_num::<I16F16>(), Some(expected));
type TooFewIntBits = FixedU16<U6>;
assert!(Fix::max_value().checked_to_num::<TooFewIntBits>().is_none());

// 2.5 is 10.1 in binary
let two_point_5 = Fix::from_bits(0b101 << (4 - 1));
assert_eq!(two_point_5.checked_to_num::<i32>(), Some(2));
assert_eq!(two_point_5.checked_to_num::<i64>(), Some(2));
type AllInt = FixedU16<U0>;
assert!(AllInt::max_value().checked_to_num::<i16>().is_none());

// 1.625 is 1.101 in binary
let one_point_625 = Fix::from_bits(0b1101 << (4 - 3));
assert_eq!(one_point_625.checked_to_num::<f32>(), Some(1.625f32));
source

pub fn saturating_from_num<Src: ToFixed>(src: Src) -> FixedU16<Frac>

Creates a fixed-point number from another number, saturating if it does not fit.

The other number can be:

Panics

This method panics if the value is a floating-point NaN.

Examples
use substrate_fixed::{
    types::extra::{U2, U4},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(Fix::saturating_from_num(src), Fix::from_bits(0b111 << (4 - 2)));
let too_large = FixedU16::<U2>::max_value();
assert_eq!(Fix::saturating_from_num(too_large), Fix::max_value());

assert_eq!(Fix::saturating_from_num(3), Fix::from_bits(3 << 4));
let too_small = -1;
assert_eq!(Fix::saturating_from_num(too_small), Fix::min_value());

// 1.75 is 1.11 in binary
let expected = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(Fix::saturating_from_num(1.75f32), expected);
assert_eq!(Fix::saturating_from_num(1.75f64), expected);
assert_eq!(Fix::saturating_from_num(2e38), Fix::max_value());
assert_eq!(Fix::saturating_from_num(std::f64::NEG_INFINITY), Fix::min_value());
source

pub fn saturating_to_num<Dst: FromFixed>(self) -> Dst

Converts a fixed-point number to another number, saturating the value if it does not fit.

The other number can be:

Examples
use substrate_fixed::{
    types::extra::{U0, U4, U6},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = Fix::from_bits(0b111 << (4 - 2));
let expected = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(src.saturating_to_num::<I16F16>(), expected);
type TooFewIntBits = FixedU16<U6>;
let saturated = Fix::max_value().saturating_to_num::<TooFewIntBits>();
assert_eq!(saturated, TooFewIntBits::max_value());

// 2.5 is 10.1 in binary
let two_point_5 = Fix::from_bits(0b101 << (4 - 1));
assert_eq!(two_point_5.saturating_to_num::<i32>(), 2);
type AllInt = FixedU16<U0>;
assert_eq!(AllInt::max_value().saturating_to_num::<i16>(), i16::max_value());

// 1.625 is 1.101 in binary
let one_point_625 = Fix::from_bits(0b1101 << (4 - 3));
assert_eq!(one_point_625.saturating_to_num::<f32>(), 1.625f32);
source

pub fn wrapping_from_num<Src: ToFixed>(src: Src) -> FixedU16<Frac>

Creates a fixed-point number from another number, wrapping the value on overflow.

The other number can be:

Panics

For floating-point numbers, panics if the value is not finite.

Examples
use substrate_fixed::{
    types::extra::{U0, U4},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(Fix::wrapping_from_num(src), Fix::from_bits(0b111 << (4 - 2)));
// integer 0b1101 << (16 - 7) will wrap to fixed-point 1010...
let too_large = FixedU16::<U0>::from_bits(0b1101 << (16 - 7));
let wrapped = Fix::from_bits(0b1010 << (16 - 4));
assert_eq!(Fix::wrapping_from_num(too_large), wrapped);

// integer 0b1101 << (16 - 7) will wrap to fixed-point 1010...
let large: u16 = 0b1101 << (16 - 7);
let wrapped = Fix::from_bits(0b1010 << (16 - 4));
assert_eq!(Fix::wrapping_from_num(large), wrapped);

// 1.75 is 1.11 in binary
let expected = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(Fix::wrapping_from_num(1.75f32), expected);
// 1.75 << (16 - 4) wraps to binary 11000...
let large = 1.75 * 2f32.powi(16 - 4);
let wrapped = Fix::from_bits(0b1100 << (16 - 4));
assert_eq!(Fix::wrapping_from_num(large), wrapped);
source

pub fn wrapping_to_num<Dst: FromFixed>(self) -> Dst

Converts a fixed-point number to another number, wrapping the value on overflow.

The other number can be:

Examples
use substrate_fixed::{
    types::extra::{U0, U4, U6},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = Fix::from_bits(0b111 << (4 - 2));
let expected = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(src.wrapping_to_num::<I16F16>(), expected);
type TooFewIntBits = FixedU16<U6>;
let wrapped = TooFewIntBits::from_bits(Fix::max_value().to_bits() << 2);
assert_eq!(Fix::max_value().wrapping_to_num::<TooFewIntBits>(), wrapped);

// 2.5 is 10.1 in binary
let two_point_5 = Fix::from_bits(0b101 << (4 - 1));
assert_eq!(two_point_5.wrapping_to_num::<i32>(), 2);
type AllInt = FixedU16<U0>;
assert_eq!(AllInt::max_value().wrapping_to_num::<i16>(), -1);

// 1.625 is 1.101 in binary
let one_point_625 = Fix::from_bits(0b1101 << (4 - 3));
assert_eq!(one_point_625.wrapping_to_num::<f32>(), 1.625f32);
source

pub fn overflowing_from_num<Src: ToFixed>(src: Src) -> (FixedU16<Frac>, bool)

Creates a fixed-point number from another number.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

The other number can be:

Panics

For floating-point numbers, panics if the value is not finite.

Examples
use substrate_fixed::{
    types::extra::{U0, U4},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = I16F16::from_bits(0b111 << (16 - 2));
let expected = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(Fix::overflowing_from_num(src), (expected, false));
// integer 0b1101 << (16 - 7) will wrap to fixed-point 1010...
let too_large = FixedU16::<U0>::from_bits(0b1101 << (16 - 7));
let wrapped = Fix::from_bits(0b1010 << (16 - 4));
assert_eq!(Fix::overflowing_from_num(too_large), (wrapped, true));

assert_eq!(Fix::overflowing_from_num(3), (Fix::from_bits(3 << 4), false));
// integer 0b1101 << (16 - 7) will wrap to fixed-point 1010...
let large: u16 = 0b1101 << (16 - 7);
let wrapped = Fix::from_bits(0b1010 << (16 - 4));
assert_eq!(Fix::overflowing_from_num(large), (wrapped, true));

// 1.75 is 1.11 in binary
let expected = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(Fix::overflowing_from_num(1.75f32), (expected, false));
// 1.75 << (16 - 4) wraps to binary 11000...
let large = 1.75 * 2f32.powi(16 - 4);
let wrapped = Fix::from_bits(0b1100 << (16 - 4));
assert_eq!(Fix::overflowing_from_num(large), (wrapped, true));
source

pub fn overflowing_to_num<Dst: FromFixed>(self) -> (Dst, bool)

Converts a fixed-point number to another number.

Returns a tuple of the number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

The other number can be:

Examples
use substrate_fixed::{
    types::extra::{U0, U4, U6},
    types::I16F16,
    FixedU16,
};
type Fix = FixedU16<U4>;

// 1.75 is 1.11 in binary
let src = Fix::from_bits(0b111 << (4 - 2));
let expected = I16F16::from_bits(0b111 << (16 - 2));
assert_eq!(src.overflowing_to_num::<I16F16>(), (expected, false));
type TooFewIntBits = FixedU16<U6>;
let wrapped = TooFewIntBits::from_bits(Fix::max_value().to_bits() << 2);
assert_eq!(Fix::max_value().overflowing_to_num::<TooFewIntBits>(), (wrapped, true));

// 2.5 is 10.1 in binary
let two_point_5 = Fix::from_bits(0b101 << (4 - 1));
assert_eq!(two_point_5.overflowing_to_num::<i32>(), (2, false));
let does_not_fit = FixedU16::<U0>::max_value();
let wrapped = -1i16;
assert_eq!(does_not_fit.overflowing_to_num::<i16>(), (wrapped, true));

// 1.625 is 1.101 in binary
let one_point_625 = Fix::from_bits(0b1101 << (4 - 3));
assert_eq!(one_point_625.overflowing_to_num::<f32>(), (1.625f32, false));
source

pub fn from_str_binary(src: &str) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 1.75 is 1.11 in binary
let f = Fix::from_str_binary("1.11");
let check = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(f, Ok(check));
source

pub fn from_str_octal(src: &str) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 1.75 is 1.11 in binary, 1.6 in octal
let f = Fix::from_str_octal("1.6");
let check = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(f, Ok(check));
source

pub fn from_str_hex(src: &str) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing hexadecimal digits to return a fixed-point number.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 1.75 is 1.11 in binary, 1.C in hexadecimal
let f = Fix::from_str_hex("1.C");
let check = Fix::from_bits(0b111 << (4 - 2));
assert_eq!(f, Ok(check));
source

pub fn saturating_from_str(src: &str) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing decimal digits to return a fixed-point number, saturating on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
assert_eq!(U8F8::saturating_from_str("9999"), Ok(U8F8::max_value()));
assert_eq!(U8F8::saturating_from_str("-1"), Ok(U8F8::from_num(0)));
source

pub fn saturating_from_str_binary( src: &str ) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number, saturating on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
assert_eq!(U8F8::saturating_from_str_binary("101100111000"), Ok(U8F8::max_value()));
assert_eq!(U8F8::saturating_from_str_binary("-1"), Ok(U8F8::from_num(0)));
source

pub fn saturating_from_str_octal( src: &str ) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number, saturating on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
assert_eq!(U8F8::saturating_from_str_octal("7777"), Ok(U8F8::max_value()));
assert_eq!(U8F8::saturating_from_str_octal("-1"), Ok(U8F8::from_num(0)));
source

pub fn saturating_from_str_hex( src: &str ) -> Result<FixedU16<Frac>, ParseFixedError>

Prases a string slice containing hexadecimal digits to return a fixed-point number, saturating on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
assert_eq!(U8F8::saturating_from_str_hex("FFFF"), Ok(U8F8::max_value()));
assert_eq!(U8F8::saturating_from_str_hex("-1"), Ok(U8F8::from_num(0)));
source

pub fn wrapping_from_str(src: &str) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing decimal digits to return a fixed-point number, wrapping on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
// 9999.5 = 15.5 + 256 × n
assert_eq!(U8F8::wrapping_from_str("9999.5"), Ok(U8F8::from_num(15.5)));
assert_eq!(U8F8::wrapping_from_str("-9999.5"), Ok(U8F8::from_num(240.5)));
source

pub fn wrapping_from_str_binary( src: &str ) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number, wrapping on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
let check = U8F8::from_bits(0b1110001 << (8 - 1));
assert_eq!(U8F8::wrapping_from_str_binary("101100111000.1"), Ok(check));
assert_eq!(U8F8::wrapping_from_str_binary("-101100111000.1"), Ok(check.wrapping_neg()));
source

pub fn wrapping_from_str_octal( src: &str ) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number, wrapping on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
let check = U8F8::from_bits(0o1654 << (8 - 3));
assert_eq!(U8F8::wrapping_from_str_octal("7165.4"), Ok(check));
assert_eq!(U8F8::wrapping_from_str_octal("-7165.4"), Ok(check.wrapping_neg()));
source

pub fn wrapping_from_str_hex( src: &str ) -> Result<FixedU16<Frac>, ParseFixedError>

Parses a string slice containing hexadecimal digits to return a fixed-point number, wrapping on overflow.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
let check = U8F8::from_bits(0xFFE);
assert_eq!(U8F8::wrapping_from_str_hex("C0F.FE"), Ok(check));
assert_eq!(U8F8::wrapping_from_str_hex("-C0F.FE"), Ok(check.wrapping_neg()));
source

pub fn overflowing_from_str( src: &str ) -> Result<(FixedU16<Frac>, bool), ParseFixedError>

Parses a string slice containing decimal digits to return a fixed-point number.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
assert_eq!(U8F8::overflowing_from_str("99.5"), Ok((U8F8::from_num(99.5), false)));
// 9999.5 = 15.5 + 256 × n
assert_eq!(U8F8::overflowing_from_str("9999.5"), Ok((U8F8::from_num(15.5), true)));
source

pub fn overflowing_from_str_binary( src: &str ) -> Result<(FixedU16<Frac>, bool), ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
let check = U8F8::from_bits(0b1110001 << (8 - 1));
assert_eq!(U8F8::overflowing_from_str_binary("111000.1"), Ok((check, false)));
assert_eq!(U8F8::overflowing_from_str_binary("101100111000.1"), Ok((check, true)));
source

pub fn overflowing_from_str_octal( src: &str ) -> Result<(FixedU16<Frac>, bool), ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
let check = U8F8::from_bits(0o1654 << (8 - 3));
assert_eq!(U8F8::overflowing_from_str_octal("165.4"), Ok((check, false)));
assert_eq!(U8F8::overflowing_from_str_octal("7165.4"), Ok((check, true)));
source

pub fn overflowing_from_str_hex( src: &str ) -> Result<(FixedU16<Frac>, bool), ParseFixedError>

Parses a string slice containing hexadecimal digits to return a fixed-point number.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Rounding is to the nearest, with ties rounded to even.

Examples
use substrate_fixed::types::U8F8;
let check = U8F8::from_bits(0xFFE);
assert_eq!(U8F8::overflowing_from_str_hex("F.FE"), Ok((check, false)));
assert_eq!(U8F8::overflowing_from_str_hex("C0F.FE"), Ok((check, true)));
source

pub fn int(self) -> FixedU16<Frac>

Returns the integer part.

Note that for unsigned numbers, this is equivalent to floor.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 0010.0000
let two = Fix::from_num(2);
// 0010.0100
let two_and_quarter = two + two / 8;
assert_eq!(two_and_quarter.int(), two);
source

pub fn frac(self) -> FixedU16<Frac>

Returns the fractional part.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
// 0000.0100
let quarter = Fix::from_num(1) / 4;
// 0010.0100
let two_and_quarter = quarter * 9;
assert_eq!(two_and_quarter.frac(), quarter);
source

pub fn round_to_zero(self) -> FixedU16<Frac>

Rounds to the next integer towards 0.

Note that for unsigned numbers, this is equivalent to floor.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.1).round_to_zero(), Fix::from_num(2));
assert_eq!(Fix::from_num(2.9).round_to_zero(), Fix::from_num(2));
source

pub fn ceil(self) -> FixedU16<Frac>

Rounds to the next integer towards +∞.

Panics

When debug assertions are enabled, panics if the result does not fit. When debug assertions are not enabled, the wrapped result can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_ceil instead.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).ceil(), Fix::from_num(3));
source

pub fn floor(self) -> FixedU16<Frac>

Rounds to the next integer towards −∞.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).floor(), Fix::from_num(2));
source

pub fn round(self) -> FixedU16<Frac>

Rounds to the nearest integer, with ties rounded away from zero.

Panics

When debug assertions are enabled, panics if the result does not fit. When debug assertions are not enabled, the wrapped result can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_round instead.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).round(), Fix::from_num(3));
source

pub fn round_ties_to_even(self) -> FixedU16<Frac>

Rounds to the nearest integer, with ties rounded to even.

Panics

When debug assertions are enabled, panics if the result does not fit. When debug assertions are not enabled, the wrapped result can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_round_ties_to_even instead.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).round_ties_to_even(), Fix::from_num(2));
assert_eq!(Fix::from_num(3.5).round_ties_to_even(), Fix::from_num(4));
source

pub fn checked_ceil(self) -> Option<FixedU16<Frac>>

Checked ceil. Rounds to the next integer towards +∞, returning None on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).checked_ceil(), Some(Fix::from_num(3)));
assert!(Fix::max_value().checked_ceil().is_none());
source

pub fn checked_floor(self) -> Option<FixedU16<Frac>>

Checked floor. Rounds to the next integer towards −∞.Always returns Some for unsigned values.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).checked_floor(), Some(Fix::from_num(2)));
source

pub fn checked_round(self) -> Option<FixedU16<Frac>>

Checked round. Rounds to the nearest integer, with ties rounded away from zero, returning None on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).checked_round(), Some(Fix::from_num(3)));
assert!(Fix::max_value().checked_round().is_none());
source

pub fn checked_round_ties_to_even(self) -> Option<FixedU16<Frac>>

Checked round. Rounds to the nearest integer, with ties rounded to even, returning None on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).checked_round_ties_to_even(), Some(Fix::from_num(2)));
assert_eq!(Fix::from_num(3.5).checked_round_ties_to_even(), Some(Fix::from_num(4)));
assert!(Fix::max_value().checked_round_ties_to_even().is_none());
source

pub fn saturating_ceil(self) -> FixedU16<Frac>

Saturating ceil. Rounds to the next integer towards +∞, saturating on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).saturating_ceil(), Fix::from_num(3));
assert_eq!(Fix::max_value().saturating_ceil(), Fix::max_value());
source

pub fn saturating_floor(self) -> FixedU16<Frac>

Saturating floor. Rounds to the next integer towards −∞. Cannot overflow for unsigned values.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).saturating_floor(), Fix::from_num(2));
source

pub fn saturating_round(self) -> FixedU16<Frac>

Saturating round. Rounds to the nearest integer, with ties rounded away from zero, and saturating on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).saturating_round(), Fix::from_num(3));
assert_eq!(Fix::max_value().saturating_round(), Fix::max_value());
source

pub fn saturating_round_ties_to_even(self) -> FixedU16<Frac>

Saturating round. Rounds to the nearest integer, with ties rounded to even, and saturating on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).saturating_round_ties_to_even(), Fix::from_num(2));
assert_eq!(Fix::from_num(3.5).saturating_round_ties_to_even(), Fix::from_num(4));
assert_eq!(Fix::max_value().saturating_round_ties_to_even(), Fix::max_value());
source

pub fn wrapping_ceil(self) -> FixedU16<Frac>

Wrapping ceil. Rounds to the next integer towards +∞, wrapping on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).wrapping_ceil(), Fix::from_num(3));
assert_eq!(Fix::max_value().wrapping_ceil(), Fix::min_value());
source

pub fn wrapping_floor(self) -> FixedU16<Frac>

Wrapping floor. Rounds to the next integer towards −∞. Cannot overflow for unsigned values.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).wrapping_floor(), Fix::from_num(2));
source

pub fn wrapping_round(self) -> FixedU16<Frac>

Wrapping round. Rounds to the next integer to the nearest, with ties rounded away from zero, and wrapping on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).wrapping_round(), Fix::from_num(3));
assert_eq!(Fix::max_value().wrapping_round(), Fix::min_value());
source

pub fn wrapping_round_ties_to_even(self) -> FixedU16<Frac>

Wrapping round. Rounds to the next integer to the nearest, with ties rounded to even, and wrapping on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).wrapping_round_ties_to_even(), Fix::from_num(2));
assert_eq!(Fix::from_num(3.5).wrapping_round_ties_to_even(), Fix::from_num(4));
assert_eq!(Fix::max_value().wrapping_round_ties_to_even(), Fix::min_value());
source

pub fn overflowing_ceil(self) -> (FixedU16<Frac>, bool)

Overflowing ceil. Rounds to the next integer towards +∞.

Returns a tuple of the fixed-point number and a bool, indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).overflowing_ceil(), (Fix::from_num(3), false));
assert_eq!(Fix::max_value().overflowing_ceil(), (Fix::min_value(), true));
source

pub fn overflowing_floor(self) -> (FixedU16<Frac>, bool)

Overflowing floor. Rounds to the next integer towards −∞.

Returns a tuple of the fixed-point number and false.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).overflowing_floor(), (Fix::from_num(2), false));
source

pub fn overflowing_round(self) -> (FixedU16<Frac>, bool)

Overflowing round. Rounds to the next integer to the nearest, with ties rounded away from zero.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).overflowing_round(), (Fix::from_num(3), false));
assert_eq!(Fix::max_value().overflowing_round(), (Fix::min_value(), true));
source

pub fn overflowing_round_ties_to_even(self) -> (FixedU16<Frac>, bool)

Overflowing round. Rounds to the next integer to the nearest, with ties rounded to even.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(2.5).overflowing_round_ties_to_even(), (Fix::from_num(2), false));
assert_eq!(Fix::from_num(3.5).overflowing_round_ties_to_even(), (Fix::from_num(4), false));
assert_eq!(Fix::max_value().overflowing_round_ties_to_even(), (Fix::min_value(), true));
source

pub fn div_euclid(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Euclidean division.

Panics

Panics if the divisor is zero.

When debug assertions are enabled, this method also panics if the division overflows. When debug assertions are not enabled, the wrapped value can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_div_euclid instead.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).div_euclid(Fix::from_num(2)), Fix::from_num(3));
source

pub fn div_euclid_int(self, rhs: u16) -> FixedU16<Frac>

Euclidean division by an integer.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).div_euclid_int(2), Fix::from_num(3));
source

pub fn rem_euclid_int(self, rhs: u16) -> FixedU16<Frac>

Remainder for Euclidean division by an integer.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).rem_euclid_int(2), Fix::from_num(1.5));
source

pub fn checked_mul(self, rhs: FixedU16<Frac>) -> Option<FixedU16<Frac>>

Checked multiplication. Returns the product, or None on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::max_value().checked_mul(Fix::from_num(1)), Some(Fix::max_value()));
assert_eq!(Fix::max_value().checked_mul(Fix::from_num(2)), None);
source

pub fn checked_div(self, rhs: FixedU16<Frac>) -> Option<FixedU16<Frac>>

Checked division. Returns the quotient, or None if the divisor is zero or on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::max_value().checked_div(Fix::from_num(1)), Some(Fix::max_value()));
assert_eq!(Fix::max_value().checked_div(Fix::from_num(1) / 2), None);
source

pub fn checked_div_euclid(self, rhs: FixedU16<Frac>) -> Option<FixedU16<Frac>>

Checked Euclidean division. Returns the quotient, or None if the divisor is zero or on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).checked_div_euclid(Fix::from_num(2)), Some(Fix::from_num(3)));
assert_eq!(Fix::from_num(7.5).checked_div_euclid(Fix::from_num(0)), None);
assert_eq!(Fix::max_value().checked_div_euclid(Fix::from_num(0.25)), None);
source

pub fn checked_rem_int(self, rhs: u16) -> Option<FixedU16<Frac>>

Checked fixed-point remainder for division by an integer. Returns the remainder, or None if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3.75).checked_rem_int(2), Some(Fix::from_num(1.75)));
assert_eq!(Fix::from_num(3.75).checked_rem_int(0), None);
source

pub fn checked_div_euclid_int(self, rhs: u16) -> Option<FixedU16<Frac>>

Checked Euclidean division by an integer. Returns the quotient, or None if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).checked_div_euclid_int(2), Some(Fix::from_num(3)));
assert_eq!(Fix::from_num(7.5).checked_div_euclid_int(0), None);
source

pub fn checked_rem_euclid_int(self, rhs: u16) -> Option<FixedU16<Frac>>

Checked remainder for Euclidean division by an integer. Returns the remainder, or None if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U12, FixedU16};
type Fix = FixedU16<U12>;
assert_eq!(Fix::from_num(7.5).checked_rem_euclid_int(2), Some(Fix::from_num(1.5)));
assert_eq!(Fix::from_num(7.5).checked_rem_euclid_int(0), None);
source

pub fn saturating_mul(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Saturating multiplication. Returns the product, saturating on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3).saturating_mul(Fix::from_num(2)), Fix::from_num(6));
assert_eq!(Fix::max_value().saturating_mul(Fix::from_num(2)), Fix::max_value());
source

pub fn saturating_div(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Saturating division. Returns the quotient, saturating on overflow.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one_half = Fix::from_num(1) / 2;
assert_eq!(Fix::from_num(1).saturating_div(Fix::from_num(2)), one_half);
assert_eq!(Fix::max_value().saturating_div(one_half), Fix::max_value());
source

pub fn saturating_div_euclid(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Saturating Euclidean division. Returns the quotient, saturating on overflow.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).saturating_div_euclid(Fix::from_num(2)), Fix::from_num(3));
assert_eq!(Fix::max_value().saturating_div_euclid(Fix::from_num(0.25)), Fix::max_value());
source

pub fn wrapping_mul(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Wrapping multiplication. Returns the product, wrapping on overflow.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3).wrapping_mul(Fix::from_num(2)), Fix::from_num(6));
let wrapped = Fix::from_bits(!0 << 2);
assert_eq!(Fix::max_value().wrapping_mul(Fix::from_num(4)), wrapped);
source

pub fn wrapping_div(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Wrapping division. Returns the quotient, wrapping on overflow.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one_point_5 = Fix::from_bits(0b11 << (4 - 1));
assert_eq!(Fix::from_num(3).wrapping_div(Fix::from_num(2)), one_point_5);
let quarter = Fix::from_num(1) / 4;
let wrapped = Fix::from_bits(!0 << 2);
assert_eq!(Fix::max_value().wrapping_div(quarter), wrapped);
source

pub fn wrapping_div_euclid(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Wrapping Euclidean division. Returns the quotient, wrapping on overflow.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).wrapping_div_euclid(Fix::from_num(2)), Fix::from_num(3));
let wrapped = Fix::max_value().wrapping_mul_int(4).round_to_zero();
assert_eq!(Fix::max_value().wrapping_div_euclid(Fix::from_num(0.25)), wrapped);
source

pub fn wrapping_div_euclid_int(self, rhs: u16) -> FixedU16<Frac>

Wrapping Euclidean division by an integer. Returns the quotient.

Can never overflow for unsigned values.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).wrapping_div_euclid_int(2), Fix::from_num(3));
source

pub fn wrapping_rem_euclid_int(self, rhs: u16) -> FixedU16<Frac>

Wrapping remainder for Euclidean division by an integer. Returns the remainder.

Can never overflow for unsigned values.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U12, FixedU16};
type Fix = FixedU16<U12>;
assert_eq!(Fix::from_num(7.5).wrapping_rem_euclid_int(2), Fix::from_num(1.5));
source

pub fn overflowing_mul(self, rhs: FixedU16<Frac>) -> (FixedU16<Frac>, bool)

Overflowing multiplication.

Returns a tuple of the product and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(3).overflowing_mul(Fix::from_num(2)), (Fix::from_num(6), false));
let wrapped = Fix::from_bits(!0 << 2);
assert_eq!(Fix::max_value().overflowing_mul(Fix::from_num(4)), (wrapped, true));
source

pub fn overflowing_div(self, rhs: FixedU16<Frac>) -> (FixedU16<Frac>, bool)

Overflowing division.

Returns a tuple of the quotient and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let one_point_5 = Fix::from_bits(0b11 << (4 - 1));
assert_eq!(Fix::from_num(3).overflowing_div(Fix::from_num(2)), (one_point_5, false));
let quarter = Fix::from_num(1) / 4;
let wrapped = Fix::from_bits(!0 << 2);
assert_eq!(Fix::max_value().overflowing_div(quarter), (wrapped, true));
source

pub fn overflowing_div_euclid( self, rhs: FixedU16<Frac> ) -> (FixedU16<Frac>, bool)

Overflowing Euclidean division.

Returns a tuple of the quotient and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
let check = Fix::from_num(3);
assert_eq!(Fix::from_num(7.5).overflowing_div_euclid(Fix::from_num(2)), (check, false));
let wrapped = Fix::max_value().wrapping_mul_int(4).round_to_zero();
assert_eq!(Fix::max_value().overflowing_div_euclid(Fix::from_num(0.25)), (wrapped, true));
source

pub fn overflowing_div_euclid_int(self, rhs: u16) -> (FixedU16<Frac>, bool)

Overflowing Euclidean division by an integer.

Returns a tuple of the quotient and false, as the division can never overflow for unsigned values.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U4, FixedU16};
type Fix = FixedU16<U4>;
assert_eq!(Fix::from_num(7.5).overflowing_div_euclid_int(2), (Fix::from_num(3), false));
source

pub fn overflowing_rem_euclid_int(self, rhs: u16) -> (FixedU16<Frac>, bool)

Remainder for Euclidean division by an integer.

Returns a tuple of the remainder and false, as this can never overflow for unsigned values.

Panics

Panics if the divisor is zero.

Examples
use substrate_fixed::{types::extra::U12, FixedU16};
type Fix = FixedU16<U12>;
assert_eq!(Fix::from_num(7.5).overflowing_rem_euclid_int(2), (Fix::from_num(1.5), false));
source

pub fn wrapping_rem_int(self, rhs: u16) -> FixedU16<Frac>

👎Deprecated since 0.5.3: cannot overflow, use % or Rem::rem instead

Remainder for division by an integer.

Panics

Panics if the divisor is zero.

source

pub fn overflowing_rem_int(self, rhs: u16) -> (FixedU16<Frac>, bool)

👎Deprecated since 0.5.3: cannot overflow, use % or Rem::rem instead

Remainder for division by an integer.

Panics

Panics if the divisor is zero.

Trait Implementations§

source§

impl<'a, 'b, Frac> Add<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the + operation. Read more
source§

impl<'a, Frac> Add<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the + operation. Read more
source§

impl<'a, Frac> Add<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the + operator.
source§

fn add(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the + operation. Read more
source§

impl<Frac> Add for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the + operator.
source§

fn add(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the + operation. Read more
source§

impl<'a, Frac> AddAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn add_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the += operation. Read more
source§

impl<Frac> AddAssign for FixedU16<Frac>

source§

fn add_assign(&mut self, rhs: FixedU16<Frac>)

Performs the += operation. Read more
source§

impl<Frac: LeEqU16> Binary for FixedU16<Frac>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter.
source§

impl<'a, 'b, Frac> BitAnd<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the & operation. Read more
source§

impl<'a, Frac> BitAnd<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the & operation. Read more
source§

impl<'a, Frac> BitAnd<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the & operation. Read more
source§

impl<Frac> BitAnd for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the & operation. Read more
source§

impl<'a, Frac> BitAndAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn bitand_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the &= operation. Read more
source§

impl<Frac> BitAndAssign for FixedU16<Frac>

source§

fn bitand_assign(&mut self, rhs: FixedU16<Frac>)

Performs the &= operation. Read more
source§

impl<'a, 'b, Frac> BitOr<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the | operation. Read more
source§

impl<'a, Frac> BitOr<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the | operation. Read more
source§

impl<'a, Frac> BitOr<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the | operation. Read more
source§

impl<Frac> BitOr for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the | operation. Read more
source§

impl<'a, Frac> BitOrAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn bitor_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the |= operation. Read more
source§

impl<Frac> BitOrAssign for FixedU16<Frac>

source§

fn bitor_assign(&mut self, rhs: FixedU16<Frac>)

Performs the |= operation. Read more
source§

impl<'a, 'b, Frac> BitXor<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the ^ operation. Read more
source§

impl<'a, Frac> BitXor<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the ^ operation. Read more
source§

impl<'a, Frac> BitXor<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the ^ operation. Read more
source§

impl<Frac> BitXor for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the ^ operation. Read more
source§

impl<'a, Frac> BitXorAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn bitxor_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the ^= operation. Read more
source§

impl<Frac> BitXorAssign for FixedU16<Frac>

source§

fn bitxor_assign(&mut self, rhs: FixedU16<Frac>)

Performs the ^= operation. Read more
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> Cast<FixedI128<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedI128<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> Cast<FixedI16<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedI16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> Cast<FixedI32<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedI32<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> Cast<FixedI64<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedI64<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> Cast<FixedI8<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedI8<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> Cast<FixedU128<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedU128<FracDst>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for bf16

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for bool

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for f16

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for f32

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for f64

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for i128

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for i16

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for i32

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for i64

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for i8

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for isize

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for u128

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for u16

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for u32

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for u64

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for u8

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for usize

source§

fn cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedI128<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedI16<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedI32<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedI64<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedI8<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedU128<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedU32<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedU64<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> Cast<FixedU16<FracDst>> for FixedU8<FracSrc>

source§

fn cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> Cast<FixedU32<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedU32<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> Cast<FixedU64<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedU64<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> Cast<FixedU8<FracDst>> for FixedU16<FracSrc>

source§

fn cast(self) -> FixedU8<FracDst>

Casts the value.
source§

impl<Frac: LeEqU16> Cast<bf16> for FixedU16<Frac>

source§

fn cast(self) -> bf16

Casts the value.
source§

impl<Frac: LeEqU16> Cast<f16> for FixedU16<Frac>

source§

fn cast(self) -> f16

Casts the value.
source§

impl<Frac: LeEqU16> Cast<f32> for FixedU16<Frac>

source§

fn cast(self) -> f32

Casts the value.
source§

impl<Frac: LeEqU16> Cast<f64> for FixedU16<Frac>

source§

fn cast(self) -> f64

Casts the value.
source§

impl<Frac: LeEqU16> Cast<i128> for FixedU16<Frac>

source§

fn cast(self) -> i128

Casts the value.
source§

impl<Frac: LeEqU16> Cast<i16> for FixedU16<Frac>

source§

fn cast(self) -> i16

Casts the value.
source§

impl<Frac: LeEqU16> Cast<i32> for FixedU16<Frac>

source§

fn cast(self) -> i32

Casts the value.
source§

impl<Frac: LeEqU16> Cast<i64> for FixedU16<Frac>

source§

fn cast(self) -> i64

Casts the value.
source§

impl<Frac: LeEqU16> Cast<i8> for FixedU16<Frac>

source§

fn cast(self) -> i8

Casts the value.
source§

impl<Frac: LeEqU16> Cast<isize> for FixedU16<Frac>

source§

fn cast(self) -> isize

Casts the value.
source§

impl<Frac: LeEqU16> Cast<u128> for FixedU16<Frac>

source§

fn cast(self) -> u128

Casts the value.
source§

impl<Frac: LeEqU16> Cast<u16> for FixedU16<Frac>

source§

fn cast(self) -> u16

Casts the value.
source§

impl<Frac: LeEqU16> Cast<u32> for FixedU16<Frac>

source§

fn cast(self) -> u32

Casts the value.
source§

impl<Frac: LeEqU16> Cast<u64> for FixedU16<Frac>

source§

fn cast(self) -> u64

Casts the value.
source§

impl<Frac: LeEqU16> Cast<u8> for FixedU16<Frac>

source§

fn cast(self) -> u8

Casts the value.
source§

impl<Frac: LeEqU16> Cast<usize> for FixedU16<Frac>

source§

fn cast(self) -> usize

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> CheckedCast<FixedI128<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedI128<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> CheckedCast<FixedI16<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedI16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> CheckedCast<FixedI32<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedI32<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> CheckedCast<FixedI64<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedI64<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> CheckedCast<FixedI8<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedI8<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> CheckedCast<FixedU128<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU128<FracDst>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for bf16

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for bool

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for f16

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for f32

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for f64

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for i128

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for i16

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for i32

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for i64

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for i8

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for isize

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for u128

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for u16

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for u32

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for u64

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for u8

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for usize

source§

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedI128<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedI16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedI32<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedI64<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedI8<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedU128<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedU32<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedU64<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> CheckedCast<FixedU16<FracDst>> for FixedU8<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU16<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> CheckedCast<FixedU32<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU32<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> CheckedCast<FixedU64<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU64<FracDst>>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> CheckedCast<FixedU8<FracDst>> for FixedU16<FracSrc>

source§

fn checked_cast(self) -> Option<FixedU8<FracDst>>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<bf16> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<bf16>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<f16> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<f16>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<f32> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<f32>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<f64> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<f64>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<i128> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<i128>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<i16> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<i16>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<i32> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<i32>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<i64> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<i64>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<i8> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<i8>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<isize> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<isize>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<u128> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<u128>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<u16> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<u16>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<u32> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<u32>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<u64> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<u64>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<u8> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<u8>

Casts the value.
source§

impl<Frac: LeEqU16> CheckedCast<usize> for FixedU16<Frac>

source§

fn checked_cast(self) -> Option<usize>

Casts the value.
source§

impl<Frac> Clone for FixedU16<Frac>

source§

fn clone(&self) -> FixedU16<Frac>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Frac: LeEqU16> Debug for FixedU16<Frac>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
source§

impl<Frac> Decode for FixedU16<Frac>where PhantomData<Frac>: Decode,

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
source§

fn decode_into<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, dst_: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§

fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,

Attempt to skip the encoded value from input. Read more
source§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl<Frac> Default for FixedU16<Frac>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de, Frac: LeEqU16> Deserialize<'de> for FixedU16<Frac>

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl<Frac: LeEqU16> Display for FixedU16<Frac>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
source§

impl<'a, 'b, Frac: LeEqU16> Div<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<'a, Frac: LeEqU16> Div<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<'a, 'b, Frac: LeEqU16> Div<&'a u16> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<'a, Frac: LeEqU16> Div<&'a u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<'a, Frac: LeEqU16> Div<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<'a, Frac: LeEqU16> Div<u16> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<Frac: LeEqU16> Div<u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<Frac: LeEqU16> Div for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the / operator.
source§

fn div(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the / operation. Read more
source§

impl<'a, Frac: LeEqU16> DivAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn div_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the /= operation. Read more
source§

impl<'a, Frac: LeEqU16> DivAssign<&'a u16> for FixedU16<Frac>

source§

fn div_assign(&mut self, rhs: &u16)

Performs the /= operation. Read more
source§

impl<Frac: LeEqU16> DivAssign<u16> for FixedU16<Frac>

source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
source§

impl<Frac: LeEqU16> DivAssign for FixedU16<Frac>

source§

fn div_assign(&mut self, rhs: FixedU16<Frac>)

Performs the /= operation. Read more
source§

impl<Frac> Encode for FixedU16<Frac>where PhantomData<Frac>: Encode,

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

Convert self to a slice and append it to the destination.
source§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
source§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl<Frac: LeEqU16> Fixed for FixedU16<Frac>

§

type Bits = u16

The primitive integer underlying type.
§

type Bytes = [u8; 2]

A byte array with the same size as the type.
§

type Frac = Frac

The number of fractional bits. Read more
source§

fn min_value() -> Self

Returns the smallest value that can be represented.
source§

fn max_value() -> Self

Returns the largest value that can be represented.
source§

fn int_nbits() -> u32

Returns the number of integer bits.
source§

fn frac_nbits() -> u32

Returns the number of fractional bits.
source§

fn from_bits(bits: Self::Bits) -> Self

Creates a fixed-point number that has a bitwise representation identical to the given integer.
source§

fn to_bits(self) -> Self::Bits

Creates an integer that has a bitwise representation identical to the given fixed-point number.
source§

fn from_be_bytes(bits: Self::Bytes) -> Self

Creates a fixed-point number from its representation as a byte array in big endian.
source§

fn from_le_bytes(bits: Self::Bytes) -> Self

Creates a fixed-point number from its representation as a byte array in little endian.
source§

fn from_ne_bytes(bits: Self::Bytes) -> Self

Creates a fixed-point number from its representation as a byte array in native endian.
source§

fn to_be_bytes(self) -> Self::Bytes

Returns the memory representation of this fixed-point number as a byte array in big-endian byte order.
source§

fn to_le_bytes(self) -> Self::Bytes

Returns the memory representation of this fixed-point number as a byte array in little-endian byte order.
source§

fn to_ne_bytes(self) -> Self::Bytes

Returns the memory representation of this fixed-point number as a byte array in native byte order.
source§

fn from_num<Src: ToFixed>(src: Src) -> Self

Creates a fixed-point number from another number. Read more
source§

fn to_num<Dst: FromFixed>(self) -> Dst

Converts a fixed-point number to another number. Read more
source§

fn checked_from_num<Src: ToFixed>(val: Src) -> Option<Self>

Creates a fixed-point number from another number if it fits, otherwise returns None. Read more
source§

fn checked_to_num<Dst: FromFixed>(self) -> Option<Dst>

Converts a fixed-point number to another number if it fits, otherwise returns None. Read more
source§

fn saturating_from_num<Src: ToFixed>(val: Src) -> Self

Creates a fixed-point number from another number, saturating the value if it does not fit. Read more
source§

fn saturating_to_num<Dst: FromFixed>(self) -> Dst

Converts a fixed-point number to another number, saturating the value if it does not fit. Read more
source§

fn wrapping_from_num<Src: ToFixed>(val: Src) -> Self

Creates a fixed-point number from another number, wrapping the value on overflow. Read more
source§

fn wrapping_to_num<Dst: FromFixed>(self) -> Dst

Converts a fixed-point number to another number, wrapping the value on overflow. Read more
source§

fn overflowing_from_num<Src: ToFixed>(val: Src) -> (Self, bool)

Creates a fixed-point number from another number. Read more
source§

fn overflowing_to_num<Dst: FromFixed>(self) -> (Dst, bool)

Converts a fixed-point number to another number. Read more
source§

fn from_str_binary(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number. Read more
source§

fn from_str_octal(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number. Read more
source§

fn from_str_hex(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing hexadecimal digits to return a fixed-point number. Read more
source§

fn saturating_from_str(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing decimal digits to return a fixed-point number, saturating on overflow. Read more
source§

fn saturating_from_str_binary(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number, saturating on overflow. Read more
source§

fn saturating_from_str_octal(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number, saturating on overflow. Read more
source§

fn saturating_from_str_hex(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing hexadecimal digits to return a fixed-point number, saturating on overflow. Read more
source§

fn wrapping_from_str(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing decimal digits to return a fixed-point number, wrapping on overflow. Read more
source§

fn wrapping_from_str_binary(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number, wrapping on overflow. Read more
source§

fn wrapping_from_str_octal(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number, wrapping on overflow. Read more
source§

fn wrapping_from_str_hex(src: &str) -> Result<Self, ParseFixedError>

Parses a string slice containing hexadecimal digits to return a fixed-point number, wrapping on overflow. Read more
source§

fn overflowing_from_str(src: &str) -> Result<(Self, bool), ParseFixedError>

Parses a string slice containing decimal digits to return a fixed-point number. Read more
source§

fn overflowing_from_str_binary( src: &str ) -> Result<(Self, bool), ParseFixedError>

Parses a string slice containing binary digits to return a fixed-point number. Read more
source§

fn overflowing_from_str_octal( src: &str ) -> Result<(Self, bool), ParseFixedError>

Parses a string slice containing octal digits to return a fixed-point number. Read more
source§

fn overflowing_from_str_hex(src: &str) -> Result<(Self, bool), ParseFixedError>

Parses a string slice containing hexadecimal digits to return a fixed-point number. Read more
source§

fn int(self) -> Self

Returns the integer part.
source§

fn frac(self) -> Self

Returns the fractional part.
source§

fn ceil(self) -> Self

Rounds to the next integer towards +∞.
source§

fn floor(self) -> Self

Rounds to the next integer towards −∞.
source§

fn round_to_zero(self) -> Self

Rounds to the next integer towards 0.
source§

fn round(self) -> Self

Rounds to the nearest integer, with ties rounded away from zero.
source§

fn round_ties_to_even(self) -> Self

Rounds to the nearest integer, with ties rounded to even.
source§

fn checked_ceil(self) -> Option<Self>

Checked ceil. Rounds to the next integer towards +∞, returning None on overflow.
source§

fn checked_floor(self) -> Option<Self>

Checked floor. Rounds to the next integer towards −∞, returning None on overflow.
source§

fn checked_round(self) -> Option<Self>

Checked round. Rounds to the nearest integer, with ties rounded away from zero, returning None on overflow.
source§

fn checked_round_ties_to_even(self) -> Option<Self>

Checked round. Rounds to the nearest integer, with ties rounded to even, returning None on overflow.
source§

fn saturating_ceil(self) -> Self

Saturating ceil. Rounds to the next integer towards +∞, saturating on overflow.
source§

fn saturating_floor(self) -> Self

Saturating floor. Rounds to the next integer towards −∞, saturating on overflow.
source§

fn saturating_round(self) -> Self

Saturating round. Rounds to the nearest integer, with ties rounded away from zero, and saturating on overflow.
source§

fn saturating_round_ties_to_even(self) -> Self

Saturating round. Rounds to the nearest integer, with ties rounded to_even, and saturating on overflow.
source§

fn wrapping_ceil(self) -> Self

Wrapping ceil. Rounds to the next integer towards +∞, wrapping on overflow.
source§

fn wrapping_floor(self) -> Self

Wrapping floor. Rounds to the next integer towards −∞, wrapping on overflow.
source§

fn wrapping_round(self) -> Self

Wrapping round. Rounds to the next integer to the nearest, with ties rounded away from zero, and wrapping on overflow.
source§

fn wrapping_round_ties_to_even(self) -> Self

Wrapping round. Rounds to the next integer to the nearest, with ties rounded to even, and wrapping on overflow.
source§

fn overflowing_ceil(self) -> (Self, bool)

Overflowing ceil. Rounds to the next integer towards +∞. Read more
source§

fn overflowing_floor(self) -> (Self, bool)

Overflowing floor. Rounds to the next integer towards −∞. Read more
source§

fn overflowing_round(self) -> (Self, bool)

Overflowing round. Rounds to the next integer to the nearest, with ties rounded away from zero. Read more
source§

fn overflowing_round_ties_to_even(self) -> (Self, bool)

Overflowing round. Rounds to the next integer to the nearest, with ties rounded to even. Read more
source§

fn count_ones(self) -> u32

Returns the number of ones in the binary representation.
source§

fn count_zeros(self) -> u32

Returns the number of zeros in the binary representation.
source§

fn leading_zeros(self) -> u32

Returns the number of leading zeros in the binary representation.
source§

fn trailing_zeros(self) -> u32

Returns the number of trailing zeros in the binary representation.
source§

fn rotate_left(self, n: u32) -> Self

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

fn rotate_right(self, n: u32) -> Self

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

fn div_euclid(self, rhs: Self) -> Self

Euclidean division by an integer. Read more
source§

fn rem_euclid(self, rhs: Self) -> Self

Remainder for Euclidean division. Read more
source§

fn div_euclid_int(self, rhs: Self::Bits) -> Self

Euclidean division by an integer. Read more
source§

fn rem_euclid_int(self, rhs: Self::Bits) -> Self

Remainder for Euclidean division by an integer. Read more
source§

fn checked_neg(self) -> Option<Self>

Checked negation. Returns the negated value, or None on overflow.
source§

fn checked_add(self, rhs: Self) -> Option<Self>

Checked addition. Returns the sum, or None on overflow.
source§

fn checked_sub(self, rhs: Self) -> Option<Self>

Checked subtraction. Returns the difference, or None on overflow.
source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Checked multiplication. Returns the product, or None on overflow.
source§

fn checked_div(self, rhs: Self) -> Option<Self>

Checked division. Returns the quotient, or None if the divisor is zero or on overflow.
source§

fn checked_rem(self, rhs: Self) -> Option<Self>

Checked remainder. Returns the remainder, or None if the divisor is zero.
source§

fn checked_div_euclid(self, rhs: Self) -> Option<Self>

Checked remainder for Euclidean division. Returns the remainder, or None if the divisor is zero or the division results in overflow.
source§

fn checked_rem_euclid(self, rhs: Self) -> Option<Self>

Checked remainder for Euclidean division. Returns the remainder, or None if the divisor is zero.
source§

fn checked_mul_int(self, rhs: Self::Bits) -> Option<Self>

Checked multiplication by an integer. Returns the product, or None on overflow.
source§

fn checked_div_int(self, rhs: Self::Bits) -> Option<Self>

Checked division by an integer. Returns the quotient, or None if the divisor is zero or if the division results in overflow.
source§

fn checked_rem_int(self, rhs: Self::Bits) -> Option<Self>

Checked fixed-point remainder for division by an integer. Returns the remainder, or None if the divisor is zero or if the division results in overflow.
source§

fn checked_div_euclid_int(self, rhs: Self::Bits) -> Option<Self>

Checked Euclidean division by an integer. Returns the quotient, or None if the divisor is zero or if the division results in overflow.
source§

fn checked_rem_euclid_int(self, rhs: Self::Bits) -> Option<Self>

Checked remainder for Euclidean division by an integer. Returns the remainder, or None if the divisor is zero or if the remainder results in overflow.
source§

fn checked_shl(self, rhs: u32) -> Option<Self>

Checked shift left. Returns the shifted number, or None if rhs ≥ the number of bits.
source§

fn checked_shr(self, rhs: u32) -> Option<Self>

Checked shift right. Returns the shifted number, or None if rhs ≥ the number of bits.
source§

fn saturating_neg(self) -> Self

Saturated negation. Returns the negated value, saturating on overflow.
source§

fn saturating_add(self, rhs: Self) -> Self

Saturating addition. Returns the sum, saturating on overflow.
source§

fn saturating_sub(self, rhs: Self) -> Self

Saturating subtraction. Returns the difference, saturating on overflow.
source§

fn saturating_mul(self, rhs: Self) -> Self

Saturating multiplication. Returns the product, saturating on overflow.
source§

fn saturating_div(self, rhs: Self) -> Self

Saturating division. Returns the quotient, saturating on overflow. Read more
source§

fn saturating_div_euclid(self, rhs: Self) -> Self

Saturating Euclidean division. Returns the quotient, saturating on overflow. Read more
source§

fn saturating_mul_int(self, rhs: Self::Bits) -> Self

Saturating multiplication by an integer. Returns the product, saturating on overflow.
source§

fn wrapping_neg(self) -> Self

Wrapping negation. Returns the negated value, wrapping on overflow.
source§

fn wrapping_add(self, rhs: Self) -> Self

Wrapping addition. Returns the sum, wrapping on overflow.
source§

fn wrapping_sub(self, rhs: Self) -> Self

Wrapping subtraction. Returns the difference, wrapping on overflow.
source§

fn wrapping_mul(self, rhs: Self) -> Self

Wrapping multiplication. Returns the product, wrapping on overflow.
source§

fn wrapping_div(self, rhs: Self) -> Self

Wrapping division. Returns the quotient, wrapping on overflow. Read more
source§

fn wrapping_div_euclid(self, rhs: Self) -> Self

Wrapping Euclidean division. Returns the quotient, wrapping on overflow. Read more
source§

fn wrapping_mul_int(self, rhs: Self::Bits) -> Self

Wrapping multiplication by an integer. Returns the product, wrapping on overflow.
source§

fn wrapping_div_int(self, rhs: Self::Bits) -> Self

Wrapping division by an integer. Returns the quotient, wrapping on overflow. Read more
source§

fn wrapping_div_euclid_int(self, rhs: Self::Bits) -> Self

Wrapping Euclidean division by an integer. Returns the quotient, wrapping on overflow. Read more
source§

fn wrapping_rem_euclid_int(self, rhs: Self::Bits) -> Self

Wrapping remainder for Euclidean division by an integer. Returns the remainder, wrapping on overflow. Read more
source§

fn wrapping_shl(self, rhs: u32) -> Self

Wrapping shift left. Wraps rhs if rhs ≥ the number of bits, then shifts and returns the number.
source§

fn wrapping_shr(self, rhs: u32) -> Self

Wrapping shift right. Wraps rhs if rhs ≥ the number of bits, then shifts and returns the number.
source§

fn overflowing_neg(self) -> (Self, bool)

Overflowing negation. Read more
source§

fn overflowing_add(self, rhs: Self) -> (Self, bool)

Overflowing addition. Read more
source§

fn overflowing_sub(self, rhs: Self) -> (Self, bool)

Overflowing subtraction. Read more
source§

fn overflowing_mul(self, rhs: Self) -> (Self, bool)

Overflowing multiplication. Read more
source§

fn overflowing_div(self, rhs: Self) -> (Self, bool)

Overflowing division. Read more
source§

fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)

Overflowing Euclidean division. Read more
source§

fn overflowing_mul_int(self, rhs: Self::Bits) -> (Self, bool)

Overflowing multiplication by an integer. Read more
source§

fn overflowing_div_int(self, rhs: Self::Bits) -> (Self, bool)

Overflowing division by an integer. Read more
source§

fn overflowing_div_euclid_int(self, rhs: Self::Bits) -> (Self, bool)

Overflowing Euclidean division by an integer. Read more
source§

fn overflowing_rem_euclid_int(self, rhs: Self::Bits) -> (Self, bool)

Overflowing remainder for Euclidean division by an integer. Read more
source§

fn overflowing_shl(self, rhs: u32) -> (Self, bool)

Overflowing shift left. Read more
source§

fn overflowing_shr(self, rhs: u32) -> (Self, bool)

Overflowing shift right. Read more
source§

fn wrapping_rem_int(self, rhs: Self::Bits) -> Self

👎Deprecated since 0.5.3: cannot overflow, use % or Rem::rem instead
Remainder for division by an integer. Read more
source§

fn overflowing_rem_int(self, rhs: Self::Bits) -> (Self, bool)

👎Deprecated since 0.5.3: cannot overflow, use % or Rem::rem instead
Remainder for division by an integer. Read more
source§

impl<Frac: LeEqU16> FixedUnsigned for FixedU16<Frac>

source§

fn is_power_of_two(self) -> bool

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

fn next_power_of_two(self) -> Self

Returns the smallest power of two that is ≥ self.
source§

fn checked_next_power_of_two(self) -> Option<Self>

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

impl<Frac: LeEqU16> From<FixedU16<Frac>> for f32

source§

fn from(src: FixedU16<Frac>) -> f32

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<Frac: LeEqU16> From<FixedU16<Frac>> for f64

source§

fn from(src: FixedU16<Frac>) -> f64

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<FracSrc, FracDst: LeEqU128> From<FixedU16<FracSrc>> for FixedI128<FracDst>where FracSrc: IsLessOrEqual<FracDst, Output = True> + LeEqU16, U16: Sub<FracSrc>, U127: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U127, FracDst>, Output = True>,

source§

fn from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<FracSrc, FracDst: LeEqU32> From<FixedU16<FracSrc>> for FixedI32<FracDst>where FracSrc: IsLessOrEqual<FracDst, Output = True> + LeEqU16, U16: Sub<FracSrc>, U31: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U31, FracDst>, Output = True>,

source§

fn from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<FracSrc, FracDst: LeEqU64> From<FixedU16<FracSrc>> for FixedI64<FracDst>where FracSrc: IsLessOrEqual<FracDst, Output = True> + LeEqU16, U16: Sub<FracSrc>, U63: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U63, FracDst>, Output = True>,

source§

fn from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<FracSrc, FracDst: LeEqU128> From<FixedU16<FracSrc>> for FixedU128<FracDst>where FracSrc: IsLessOrEqual<FracDst, Output = True> + LeEqU16, U16: Sub<FracSrc>, U128: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U128, FracDst>, Output = True>,

source§

fn from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<FracSrc, FracDst: LeEqU32> From<FixedU16<FracSrc>> for FixedU32<FracDst>where FracSrc: IsLessOrEqual<FracDst, Output = True> + LeEqU16, U16: Sub<FracSrc>, U32: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U32, FracDst>, Output = True>,

source§

fn from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<FracSrc, FracDst: LeEqU64> From<FixedU16<FracSrc>> for FixedU64<FracDst>where FracSrc: IsLessOrEqual<FracDst, Output = True> + LeEqU16, U16: Sub<FracSrc>, U64: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U64, FracDst>, Output = True>,

source§

fn from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl From<FixedU16<UTerm>> for i128

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<FixedU16<UTerm>> for i32

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<FixedU16<UTerm>> for i64

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<FixedU16<UTerm>> for u128

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<FixedU16<UTerm>> for u16

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<FixedU16<UTerm>> for u32

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<FixedU16<UTerm>> for u64

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<FixedU16<UTerm>> for usize

source§

fn from(src: FixedU16<U0>) -> Self

Converts a fixed-point number with no fractional bits to an integer.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl<FracSrc, FracDst: LeEqU16> From<FixedU8<FracSrc>> for FixedU16<FracDst>where FracSrc: IsLessOrEqual<FracDst, Output = True> + LeEqU8, U8: Sub<FracSrc>, U16: Sub<FracDst>, Diff<U8, FracSrc>: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn from(src: FixedU8<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) and does not lose any precision (lossless).

source§

impl<FracDst: LeEqU16> From<bool> for FixedU16<FracDst>where U16: Sub<FracDst>, U1: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn from(src: bool) -> Self

Converts a bool to a fixed-point number.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl From<u16> for FixedU16<U0>

source§

fn from(src: u16) -> Self

Converts an integer to a fixed-point number.

This conversion never fails (infallible) and cannot lose any fractional bits (lossless).

source§

impl<FracDst: LeEqU16> From<u8> for FixedU16<FracDst>where U16: Sub<FracDst>, U8: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn from(src: u8) -> Self

Converts an integer to a fixed-point number.

This conversion never fails (infallible) and cannot lose any fractional bits, so it is actually lossless.

source§

impl<Frac: LeEqU16> FromFixed for FixedU16<Frac>

source§

fn from_fixed<F: Fixed>(src: F) -> Self

Converts a fixed-point number.

Any extra fractional bits are truncated.

source§

fn checked_from_fixed<F: Fixed>(src: F) -> Option<Self>

Converts a fixed-point number if it fits, otherwise returns None.

Any extra fractional bits are truncated.

source§

fn saturating_from_fixed<F: Fixed>(src: F) -> Self

Converts a fixed-point number, saturating if it does not fit.

Any extra fractional bits are truncated.

source§

fn wrapping_from_fixed<F: Fixed>(src: F) -> Self

Converts a fixed-point number, wrapping if it does not fit.

Any extra fractional bits are truncated.

source§

fn overflowing_from_fixed<F: Fixed>(src: F) -> (Self, bool)

Converts a fixed-point number.

Returns a tuple of the value and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Any extra fractional bits are truncated.

source§

impl<Frac: LeEqU16> FromStr for FixedU16<Frac>

source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string slice to return a fixed-point number.

Rounding is to the nearest, with ties rounded to even.

§

type Err = ParseFixedError

The associated error which can be returned from parsing.
source§

impl<Frac> Hash for FixedU16<Frac>

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> LossyFrom<FixedU128<FracSrc>> for FixedU16<FracDst>where U128: Sub<FracSrc>, U16: Sub<FracDst>, Diff<U128, FracSrc>: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU128<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for bf16

source§

fn lossy_from(src: FixedU16<Frac>) -> bf16

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

source§

impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for f16

source§

fn lossy_from(src: FixedU16<Frac>) -> f16

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

source§

impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for f32

source§

fn lossy_from(src: FixedU16<Frac>) -> f32

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

source§

impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for f64

source§

fn lossy_from(src: FixedU16<Frac>) -> f64

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> LossyFrom<FixedU16<FracSrc>> for FixedI128<FracDst>where U16: Sub<FracSrc>, U127: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U127, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> LossyFrom<FixedU16<FracSrc>> for FixedI16<FracDst>where U16: Sub<FracSrc>, U15: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U15, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> LossyFrom<FixedU16<FracSrc>> for FixedI32<FracDst>where U16: Sub<FracSrc>, U31: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U31, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> LossyFrom<FixedU16<FracSrc>> for FixedI64<FracDst>where U16: Sub<FracSrc>, U63: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U63, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> LossyFrom<FixedU16<FracSrc>> for FixedI8<FracDst>where U16: Sub<FracSrc>, U7: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U7, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> LossyFrom<FixedU16<FracSrc>> for FixedU128<FracDst>where U16: Sub<FracSrc>, U128: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U128, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> LossyFrom<FixedU16<FracSrc>> for FixedU16<FracDst>where U16: Sub<FracSrc>, U16: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> LossyFrom<FixedU16<FracSrc>> for FixedU32<FracDst>where U16: Sub<FracSrc>, U32: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U32, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> LossyFrom<FixedU16<FracSrc>> for FixedU64<FracDst>where U16: Sub<FracSrc>, U64: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U64, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> LossyFrom<FixedU16<FracSrc>> for FixedU8<FracDst>where U16: Sub<FracSrc>, U8: Sub<FracDst>, Diff<U16, FracSrc>: IsLessOrEqual<Diff<U8, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i128where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U127, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i16where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U15, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i32where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U31, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i64where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U63, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i8where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U7, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for isizewhere U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U15, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u128where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U128, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u16where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U16, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u32where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U32, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u64where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U64, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u8where U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U8, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for usizewhere U16: Sub<FracSrc>, Diff<U16, FracSrc>: IsLessOrEqual<U16, Output = True>,

source§

fn lossy_from(src: FixedU16<FracSrc>) -> Self

Converts a fixed-point number to an integer.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are truncated.

source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> LossyFrom<FixedU32<FracSrc>> for FixedU16<FracDst>where U32: Sub<FracSrc>, U16: Sub<FracDst>, Diff<U32, FracSrc>: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU32<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> LossyFrom<FixedU64<FracSrc>> for FixedU16<FracDst>where U64: Sub<FracSrc>, U16: Sub<FracDst>, Diff<U64, FracSrc>: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU64<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> LossyFrom<FixedU8<FracSrc>> for FixedU16<FracDst>where U8: Sub<FracSrc>, U16: Sub<FracDst>, Diff<U8, FracSrc>: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn lossy_from(src: FixedU8<FracSrc>) -> Self

Converts a fixed-pint number.

This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source that cannot be represented in the destination are truncated.

source§

impl<FracDst: LeEqU16> LossyFrom<bool> for FixedU16<FracDst>where U16: Sub<FracDst>, U1: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn lossy_from(src: bool) -> Self

Converts a bool to a fixed-point number.

This conversion never fails (infallible) and cannot lose any fractional bits, so it is actually lossless.

source§

impl LossyFrom<u16> for FixedU16<U0>

source§

fn lossy_from(src: u16) -> Self

Converts a number.

This conversion never fails (infallible) and does not lose any precision, so it is actually lossless.

source§

impl<FracDst: LeEqU16> LossyFrom<u8> for FixedU16<FracDst>where U16: Sub<FracDst>, U8: IsLessOrEqual<Diff<U16, FracDst>, Output = True>,

source§

fn lossy_from(src: u8) -> Self

Converts an integer to a fixed-point number.

This conversion never fails (infallible) and cannot lose any fractional bits, so it is actually lossless.

source§

impl<Frac: LeEqU16> LowerHex for FixedU16<Frac>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter.
source§

impl<Frac> MaxEncodedLen for FixedU16<Frac>where PhantomData<Frac>: MaxEncodedLen,

source§

fn max_encoded_len() -> usize

Upper bound, in bytes, of the maximum encoded size of this item.
source§

impl<'a, 'b, Frac: LeEqU16> Mul<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, 'b, Frac: LeEqU16> Mul<&'a FixedU16<Frac>> for &'b u16

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, Frac: LeEqU16> Mul<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, Frac: LeEqU16> Mul<&'a FixedU16<Frac>> for u16

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, 'b, Frac: LeEqU16> Mul<&'a u16> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, Frac: LeEqU16> Mul<&'a u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, Frac: LeEqU16> Mul<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, Frac: LeEqU16> Mul<FixedU16<Frac>> for &'a u16

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<Frac: LeEqU16> Mul<FixedU16<Frac>> for u16

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, Frac: LeEqU16> Mul<u16> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<Frac: LeEqU16> Mul<u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<Frac: LeEqU16> Mul for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the * operation. Read more
source§

impl<'a, Frac: LeEqU16> MulAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn mul_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the *= operation. Read more
source§

impl<'a, Frac: LeEqU16> MulAssign<&'a u16> for FixedU16<Frac>

source§

fn mul_assign(&mut self, rhs: &u16)

Performs the *= operation. Read more
source§

impl<Frac: LeEqU16> MulAssign<u16> for FixedU16<Frac>

source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
source§

impl<Frac: LeEqU16> MulAssign for FixedU16<Frac>

source§

fn mul_assign(&mut self, rhs: FixedU16<Frac>)

Performs the *= operation. Read more
source§

impl<'a, Frac> Not for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the ! operator.
source§

fn not(self) -> FixedU16<Frac>

Performs the unary ! operation. Read more
source§

impl<Frac> Not for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the ! operator.
source§

fn not(self) -> FixedU16<Frac>

Performs the unary ! operation. Read more
source§

impl<Frac: LeEqU16> Octal for FixedU16<Frac>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter.
source§

impl<Frac: LeEqU16> Ord for FixedU16<Frac>

source§

fn cmp(&self, rhs: &FixedU16<Frac>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> OverflowingCast<FixedI128<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedI128<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> OverflowingCast<FixedI16<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedI16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> OverflowingCast<FixedI32<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedI32<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> OverflowingCast<FixedI64<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedI64<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> OverflowingCast<FixedI8<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedI8<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> OverflowingCast<FixedU128<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU128<FracDst>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for bf16

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for bool

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for f16

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for f32

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for f64

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for i128

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for i16

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for i32

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for i64

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for i8

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for isize

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for u128

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for u16

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for u32

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for u64

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for u8

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for usize

source§

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedI128<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedI16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedI32<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedI64<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedI8<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedU128<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedU32<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedU64<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> OverflowingCast<FixedU16<FracDst>> for FixedU8<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU16<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> OverflowingCast<FixedU32<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU32<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> OverflowingCast<FixedU64<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU64<FracDst>, bool)

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> OverflowingCast<FixedU8<FracDst>> for FixedU16<FracSrc>

source§

fn overflowing_cast(self) -> (FixedU8<FracDst>, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<bf16> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (bf16, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<f16> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (f16, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<f32> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (f32, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<f64> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (f64, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<i128> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (i128, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<i16> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (i16, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<i32> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (i32, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<i64> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (i64, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<i8> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (i8, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<isize> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (isize, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<u128> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (u128, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<u16> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (u16, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<u32> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (u32, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<u64> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (u64, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<u8> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (u8, bool)

Casts the value.
source§

impl<Frac: LeEqU16> OverflowingCast<usize> for FixedU16<Frac>

source§

fn overflowing_cast(self) -> (usize, bool)

Casts the value.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU128> PartialEq<FixedI128<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedI128<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU16> PartialEq<FixedI16<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedI16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU32> PartialEq<FixedI32<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedI32<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU64> PartialEq<FixedI64<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedI64<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU8> PartialEq<FixedI8<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedI8<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU128> PartialEq<FixedU128<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedU128<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for bf16

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for f16

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for f32

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for f64

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for i128

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for i16

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for i32

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for i64

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for i8

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for isize

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for u128

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for u16

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for u32

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for u64

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for u8

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<FixedU16<Frac>> for usize

source§

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU128, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedI128<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedI16<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU32, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedI32<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU64, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedI64<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU8, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedI8<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU128, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedU128<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU32, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedU32<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU64, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedU64<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU8, FracRhs: LeEqU16> PartialEq<FixedU16<FracRhs>> for FixedU8<FracLhs>

source§

fn eq(&self, rhs: &FixedU16<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU32> PartialEq<FixedU32<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedU32<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU64> PartialEq<FixedU64<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedU64<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU8> PartialEq<FixedU8<FracRhs>> for FixedU16<FracLhs>

source§

fn eq(&self, rhs: &FixedU8<FracRhs>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<bf16> for FixedU16<Frac>

source§

fn eq(&self, rhs: &bf16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<f16> for FixedU16<Frac>

source§

fn eq(&self, rhs: &f16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<f32> for FixedU16<Frac>

source§

fn eq(&self, rhs: &f32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<f64> for FixedU16<Frac>

source§

fn eq(&self, rhs: &f64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<i128> for FixedU16<Frac>

source§

fn eq(&self, rhs: &i128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<i16> for FixedU16<Frac>

source§

fn eq(&self, rhs: &i16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<i32> for FixedU16<Frac>

source§

fn eq(&self, rhs: &i32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<i64> for FixedU16<Frac>

source§

fn eq(&self, rhs: &i64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<i8> for FixedU16<Frac>

source§

fn eq(&self, rhs: &i8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<isize> for FixedU16<Frac>

source§

fn eq(&self, rhs: &isize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<u128> for FixedU16<Frac>

source§

fn eq(&self, rhs: &u128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<u16> for FixedU16<Frac>

source§

fn eq(&self, rhs: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<u32> for FixedU16<Frac>

source§

fn eq(&self, rhs: &u32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<u64> for FixedU16<Frac>

source§

fn eq(&self, rhs: &u64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<u8> for FixedU16<Frac>

source§

fn eq(&self, rhs: &u8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Frac: LeEqU16> PartialEq<usize> for FixedU16<Frac>

source§

fn eq(&self, rhs: &usize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<FracLhs: LeEqU16, FracRhs: LeEqU128> PartialOrd<FixedI128<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedI128<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedI128<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedI128<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedI128<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedI128<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU16> PartialOrd<FixedI16<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedI16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedI16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedI16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedI16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedI16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU32> PartialOrd<FixedI32<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedI32<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedI32<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedI32<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedI32<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedI32<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU64> PartialOrd<FixedI64<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedI64<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedI64<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedI64<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedI64<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedI64<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU8> PartialOrd<FixedI8<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedI8<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedI8<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedI8<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedI8<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedI8<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU128> PartialOrd<FixedU128<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU128<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU128<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU128<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU128<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU128<FracRhs>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for bf16

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for f16

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for f32

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for f64

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for i128

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for i16

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for i32

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for i64

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for i8

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for isize

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for u128

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for u16

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for u32

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for u64

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for u8

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<FixedU16<Frac>> for usize

source§

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn le(&self, rhs: &FixedU16<Frac>) -> bool

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

fn gt(&self, rhs: &FixedU16<Frac>) -> bool

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

fn ge(&self, rhs: &FixedU16<Frac>) -> bool

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

impl<FracLhs: LeEqU128, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedI128<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedI16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU32, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedI32<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU64, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedI64<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU8, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedI8<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU128, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedU128<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU32, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedU32<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU64, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedU64<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU8, FracRhs: LeEqU16> PartialOrd<FixedU16<FracRhs>> for FixedU8<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU16<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU16<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU16<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU32> PartialOrd<FixedU32<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU32<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU32<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU32<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU32<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU32<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU64> PartialOrd<FixedU64<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU64<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU64<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU64<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU64<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU64<FracRhs>) -> bool

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

impl<FracLhs: LeEqU16, FracRhs: LeEqU8> PartialOrd<FixedU8<FracRhs>> for FixedU16<FracLhs>

source§

fn partial_cmp(&self, rhs: &FixedU8<FracRhs>) -> Option<Ordering>

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

fn lt(&self, rhs: &FixedU8<FracRhs>) -> bool

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

fn le(&self, rhs: &FixedU8<FracRhs>) -> bool

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

fn gt(&self, rhs: &FixedU8<FracRhs>) -> bool

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

fn ge(&self, rhs: &FixedU8<FracRhs>) -> bool

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

impl<Frac: LeEqU16> PartialOrd<bf16> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &bf16) -> Option<Ordering>

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

fn lt(&self, rhs: &bf16) -> bool

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

fn le(&self, rhs: &bf16) -> bool

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

fn gt(&self, rhs: &bf16) -> bool

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

fn ge(&self, rhs: &bf16) -> bool

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

impl<Frac: LeEqU16> PartialOrd<f16> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &f16) -> Option<Ordering>

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

fn lt(&self, rhs: &f16) -> bool

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

fn le(&self, rhs: &f16) -> bool

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

fn gt(&self, rhs: &f16) -> bool

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

fn ge(&self, rhs: &f16) -> bool

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

impl<Frac: LeEqU16> PartialOrd<f32> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &f32) -> Option<Ordering>

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

fn lt(&self, rhs: &f32) -> bool

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

fn le(&self, rhs: &f32) -> bool

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

fn gt(&self, rhs: &f32) -> bool

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

fn ge(&self, rhs: &f32) -> bool

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

impl<Frac: LeEqU16> PartialOrd<f64> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &f64) -> Option<Ordering>

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

fn lt(&self, rhs: &f64) -> bool

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

fn le(&self, rhs: &f64) -> bool

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

fn gt(&self, rhs: &f64) -> bool

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

fn ge(&self, rhs: &f64) -> bool

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

impl<Frac: LeEqU16> PartialOrd<i128> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &i128) -> Option<Ordering>

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

fn lt(&self, rhs: &i128) -> bool

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

fn le(&self, rhs: &i128) -> bool

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

fn gt(&self, rhs: &i128) -> bool

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

fn ge(&self, rhs: &i128) -> bool

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

impl<Frac: LeEqU16> PartialOrd<i16> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &i16) -> Option<Ordering>

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

fn lt(&self, rhs: &i16) -> bool

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

fn le(&self, rhs: &i16) -> bool

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

fn gt(&self, rhs: &i16) -> bool

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

fn ge(&self, rhs: &i16) -> bool

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

impl<Frac: LeEqU16> PartialOrd<i32> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &i32) -> Option<Ordering>

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

fn lt(&self, rhs: &i32) -> bool

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

fn le(&self, rhs: &i32) -> bool

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

fn gt(&self, rhs: &i32) -> bool

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

fn ge(&self, rhs: &i32) -> bool

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

impl<Frac: LeEqU16> PartialOrd<i64> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &i64) -> Option<Ordering>

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

fn lt(&self, rhs: &i64) -> bool

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

fn le(&self, rhs: &i64) -> bool

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

fn gt(&self, rhs: &i64) -> bool

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

fn ge(&self, rhs: &i64) -> bool

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

impl<Frac: LeEqU16> PartialOrd<i8> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &i8) -> Option<Ordering>

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

fn lt(&self, rhs: &i8) -> bool

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

fn le(&self, rhs: &i8) -> bool

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

fn gt(&self, rhs: &i8) -> bool

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

fn ge(&self, rhs: &i8) -> bool

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

impl<Frac: LeEqU16> PartialOrd<isize> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &isize) -> Option<Ordering>

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

fn lt(&self, rhs: &isize) -> bool

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

fn le(&self, rhs: &isize) -> bool

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

fn gt(&self, rhs: &isize) -> bool

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

fn ge(&self, rhs: &isize) -> bool

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

impl<Frac: LeEqU16> PartialOrd<u128> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &u128) -> Option<Ordering>

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

fn lt(&self, rhs: &u128) -> bool

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

fn le(&self, rhs: &u128) -> bool

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

fn gt(&self, rhs: &u128) -> bool

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

fn ge(&self, rhs: &u128) -> bool

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

impl<Frac: LeEqU16> PartialOrd<u16> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &u16) -> Option<Ordering>

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

fn lt(&self, rhs: &u16) -> bool

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

fn le(&self, rhs: &u16) -> bool

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

fn gt(&self, rhs: &u16) -> bool

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

fn ge(&self, rhs: &u16) -> bool

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

impl<Frac: LeEqU16> PartialOrd<u32> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &u32) -> Option<Ordering>

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

fn lt(&self, rhs: &u32) -> bool

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

fn le(&self, rhs: &u32) -> bool

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

fn gt(&self, rhs: &u32) -> bool

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

fn ge(&self, rhs: &u32) -> bool

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

impl<Frac: LeEqU16> PartialOrd<u64> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &u64) -> Option<Ordering>

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

fn lt(&self, rhs: &u64) -> bool

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

fn le(&self, rhs: &u64) -> bool

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

fn gt(&self, rhs: &u64) -> bool

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

fn ge(&self, rhs: &u64) -> bool

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

impl<Frac: LeEqU16> PartialOrd<u8> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &u8) -> Option<Ordering>

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

fn lt(&self, rhs: &u8) -> bool

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

fn le(&self, rhs: &u8) -> bool

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

fn gt(&self, rhs: &u8) -> bool

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

fn ge(&self, rhs: &u8) -> bool

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

impl<Frac: LeEqU16> PartialOrd<usize> for FixedU16<Frac>

source§

fn partial_cmp(&self, rhs: &usize) -> Option<Ordering>

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

fn lt(&self, rhs: &usize) -> bool

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

fn le(&self, rhs: &usize) -> bool

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

fn gt(&self, rhs: &usize) -> bool

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

fn ge(&self, rhs: &usize) -> bool

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

impl<'a, Frac: 'a + LeEqU16> Product<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn product<I>(iter: I) -> FixedU16<Frac>where I: Iterator<Item = &'a FixedU16<Frac>>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<Frac: LeEqU16> Product for FixedU16<Frac>

source§

fn product<I>(iter: I) -> FixedU16<Frac>where I: Iterator<Item = FixedU16<Frac>>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<'a, 'b, Frac> Rem<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<'a, Frac> Rem<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<'a, 'b, Frac: LeEqU16> Rem<&'a u16> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<'a, Frac: LeEqU16> Rem<&'a u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<'a, Frac> Rem<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<'a, Frac: LeEqU16> Rem<u16> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<Frac: LeEqU16> Rem<u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<Frac> Rem for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the % operation. Read more
source§

impl<'a, Frac> RemAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn rem_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the %= operation. Read more
source§

impl<'a, Frac: LeEqU16> RemAssign<&'a u16> for FixedU16<Frac>

source§

fn rem_assign(&mut self, rhs: &u16)

Performs the %= operation. Read more
source§

impl<Frac: LeEqU16> RemAssign<u16> for FixedU16<Frac>

source§

fn rem_assign(&mut self, rhs: u16)

Performs the %= operation. Read more
source§

impl<Frac> RemAssign for FixedU16<Frac>

source§

fn rem_assign(&mut self, rhs: FixedU16<Frac>)

Performs the %= operation. Read more
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> SaturatingCast<FixedI128<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedI128<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> SaturatingCast<FixedI16<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedI16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> SaturatingCast<FixedI32<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedI32<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> SaturatingCast<FixedI64<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedI64<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> SaturatingCast<FixedI8<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedI8<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> SaturatingCast<FixedU128<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedU128<FracDst>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for bf16

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for bool

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for f16

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for f32

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for f64

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for i128

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for i16

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for i32

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for i64

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for i8

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for isize

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for u128

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for u16

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for u32

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for u64

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for u8

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for usize

source§

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedI128<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedI16<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedI32<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedI64<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedI8<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedU128<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedU32<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedU64<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> SaturatingCast<FixedU16<FracDst>> for FixedU8<FracSrc>

source§

fn saturating_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> SaturatingCast<FixedU32<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedU32<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> SaturatingCast<FixedU64<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedU64<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> SaturatingCast<FixedU8<FracDst>> for FixedU16<FracSrc>

source§

fn saturating_cast(self) -> FixedU8<FracDst>

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<bf16> for FixedU16<Frac>

source§

fn saturating_cast(self) -> bf16

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<f16> for FixedU16<Frac>

source§

fn saturating_cast(self) -> f16

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<f32> for FixedU16<Frac>

source§

fn saturating_cast(self) -> f32

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<f64> for FixedU16<Frac>

source§

fn saturating_cast(self) -> f64

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<i128> for FixedU16<Frac>

source§

fn saturating_cast(self) -> i128

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<i16> for FixedU16<Frac>

source§

fn saturating_cast(self) -> i16

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<i32> for FixedU16<Frac>

source§

fn saturating_cast(self) -> i32

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<i64> for FixedU16<Frac>

source§

fn saturating_cast(self) -> i64

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<i8> for FixedU16<Frac>

source§

fn saturating_cast(self) -> i8

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<isize> for FixedU16<Frac>

source§

fn saturating_cast(self) -> isize

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<u128> for FixedU16<Frac>

source§

fn saturating_cast(self) -> u128

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<u16> for FixedU16<Frac>

source§

fn saturating_cast(self) -> u16

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<u32> for FixedU16<Frac>

source§

fn saturating_cast(self) -> u32

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<u64> for FixedU16<Frac>

source§

fn saturating_cast(self) -> u64

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<u8> for FixedU16<Frac>

source§

fn saturating_cast(self) -> u8

Casts the value.
source§

impl<Frac: LeEqU16> SaturatingCast<usize> for FixedU16<Frac>

source§

fn saturating_cast(self) -> usize

Casts the value.
source§

impl<Frac: LeEqU16> Serialize for FixedU16<Frac>

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl<'a, 'b, Frac> Shl<&'a i128> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a i128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a i16> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a i16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a i32> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a i32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a i64> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a i64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a i8> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a i8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &i8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a isize> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &isize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a isize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &isize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a u128> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a u128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a u16> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a u32> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a u32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a u64> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a u64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a u8> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a u8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &u8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, 'b, Frac> Shl<&'a usize> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &usize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<&'a usize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: &usize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<i128> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<i128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<i16> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<i16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<i32> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<i32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<i64> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<i64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<i8> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<i8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: i8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<isize> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: isize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<isize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: isize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<u128> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<u128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u128) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<u16> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u16) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<u32> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<u32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u32) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<u64> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<u64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u64) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<u8> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<u8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u8) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> Shl<usize> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: usize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<Frac> Shl<usize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: usize) -> FixedU16<Frac>

Performs the << operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a i128> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &i128)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a i16> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &i16)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a i32> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &i32)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a i64> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &i64)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a i8> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &i8)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a isize> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &isize)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a u128> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &u128)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a u16> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &u16)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a u32> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &u32)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a u64> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &u64)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a u8> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &u8)

Performs the <<= operation. Read more
source§

impl<'a, Frac> ShlAssign<&'a usize> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: &usize)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<i128> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: i128)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<i16> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: i16)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<i32> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<i64> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: i64)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<i8> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: i8)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<isize> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: isize)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<u128> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: u128)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<u16> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: u16)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<u32> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<u64> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<u8> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
source§

impl<Frac> ShlAssign<usize> for FixedU16<Frac>

source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a i128> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a i128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a i16> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a i16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a i32> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a i32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a i64> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a i64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a i8> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a i8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &i8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a isize> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &isize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a isize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &isize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a u128> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a u128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a u16> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a u32> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a u32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a u64> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a u64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a u8> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a u8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &u8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, 'b, Frac> Shr<&'a usize> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &usize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<&'a usize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: &usize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<i128> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<i128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<i16> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<i16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<i32> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<i32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<i64> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<i64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<i8> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<i8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: i8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<isize> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: isize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<isize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: isize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<u128> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<u128> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u128) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<u16> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<u16> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u16) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<u32> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<u32> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u32) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<u64> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<u64> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u64) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<u8> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<u8> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u8) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> Shr<usize> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: usize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<Frac> Shr<usize> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: usize) -> FixedU16<Frac>

Performs the >> operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a i128> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &i128)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a i16> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &i16)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a i32> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &i32)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a i64> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &i64)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a i8> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &i8)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a isize> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &isize)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a u128> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &u128)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a u16> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &u16)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a u32> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &u32)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a u64> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &u64)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a u8> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &u8)

Performs the >>= operation. Read more
source§

impl<'a, Frac> ShrAssign<&'a usize> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: &usize)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<i128> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: i128)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<i16> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: i16)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<i32> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<i64> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: i64)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<i8> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: i8)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<isize> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: isize)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<u128> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: u128)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<u16> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: u16)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<u32> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<u64> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<u8> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
source§

impl<Frac> ShrAssign<usize> for FixedU16<Frac>

source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> StaticCast<FixedI128<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedI128<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> StaticCast<FixedI16<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedI16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> StaticCast<FixedI32<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedI32<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> StaticCast<FixedI64<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedI64<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> StaticCast<FixedI8<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedI8<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> StaticCast<FixedU128<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedU128<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for bf16

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for bool

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for f16

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for f32

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for f64

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for i128

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for i16

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for i32

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for i64

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for i8

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for isize

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for u128

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for u16

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for u32

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for u64

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for u8

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<FixedU16<Frac>> for usize

source§

fn static_cast(self) -> Option<FixedU16<Frac>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedI128<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedI16<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedI32<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedI64<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedI8<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedU128<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedU32<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedU64<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> StaticCast<FixedU16<FracDst>> for FixedU8<FracSrc>

source§

fn static_cast(self) -> Option<FixedU16<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> StaticCast<FixedU32<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedU32<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> StaticCast<FixedU64<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedU64<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> StaticCast<FixedU8<FracDst>> for FixedU16<FracSrc>

source§

fn static_cast(self) -> Option<FixedU8<FracDst>>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<bf16> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<bf16>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<f16> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<f16>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<f32> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<f32>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<f64> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<f64>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<i128> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<i128>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<i16> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<i16>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<i32> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<i32>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<i64> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<i64>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<i8> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<i8>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<isize> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<isize>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<u128> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<u128>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<u16> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<u16>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<u32> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<u32>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<u64> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<u64>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<u8> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<u8>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<Frac: LeEqU16> StaticCast<usize> for FixedU16<Frac>

source§

fn static_cast(self) -> Option<usize>

👎Deprecated since 0.3.1: use case is unclear
Casts if the conversion works for all source type values, otherwise returns None.
source§

impl<'a, 'b, Frac> Sub<&'a FixedU16<Frac>> for &'b FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the - operation. Read more
source§

impl<'a, Frac> Sub<&'a FixedU16<Frac>> for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &FixedU16<Frac>) -> FixedU16<Frac>

Performs the - operation. Read more
source§

impl<'a, Frac> Sub<FixedU16<Frac>> for &'a FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the - operation. Read more
source§

impl<Frac> Sub for FixedU16<Frac>

§

type Output = FixedU16<Frac>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: FixedU16<Frac>) -> FixedU16<Frac>

Performs the - operation. Read more
source§

impl<'a, Frac> SubAssign<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn sub_assign(&mut self, rhs: &FixedU16<Frac>)

Performs the -= operation. Read more
source§

impl<Frac> SubAssign for FixedU16<Frac>

source§

fn sub_assign(&mut self, rhs: FixedU16<Frac>)

Performs the -= operation. Read more
source§

impl<'a, Frac: 'a> Sum<&'a FixedU16<Frac>> for FixedU16<Frac>

source§

fn sum<I>(iter: I) -> FixedU16<Frac>where I: Iterator<Item = &'a FixedU16<Frac>>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<Frac> Sum for FixedU16<Frac>

source§

fn sum<I>(iter: I) -> FixedU16<Frac>where I: Iterator<Item = FixedU16<Frac>>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<Frac: LeEqU16> ToFixed for FixedU16<Frac>

source§

fn to_fixed<F: Fixed>(self) -> F

Converts a fixed-point number.

Any extra fractional bits are truncated.

source§

fn checked_to_fixed<F: Fixed>(self) -> Option<F>

Converts a fixed-point number if it fits, otherwise returns None.

Any extra fractional bits are truncated.

source§

fn saturating_to_fixed<F: Fixed>(self) -> F

Converts a fixed-point number, saturating if it does not fit.

Any extra fractional bits are truncated.

source§

fn wrapping_to_fixed<F: Fixed>(self) -> F

Converts a fixed-point number, wrapping if it does not fit.

Any extra fractional bits are truncated.

source§

fn overflowing_to_fixed<F: Fixed>(self) -> (F, bool)

Converts a fixed-point number.

Returns a tuple of the value and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Any extra fractional bits are truncated.

source§

impl<Frac> TypeInfo for FixedU16<Frac>where PhantomData<Frac>: TypeInfo + 'static, Frac: TypeInfo + 'static,

§

type Identity = FixedU16<Frac>

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl<Frac: LeEqU16> UpperHex for FixedU16<Frac>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> WrappingCast<FixedI128<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedI128<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> WrappingCast<FixedI16<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedI16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> WrappingCast<FixedI32<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedI32<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> WrappingCast<FixedI64<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedI64<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> WrappingCast<FixedI8<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedI8<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU128> WrappingCast<FixedU128<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedU128<FracDst>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for bf16

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for bool

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for f16

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for f32

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for f64

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for i128

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for i16

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for i32

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for i64

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for i8

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for isize

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for u128

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for u16

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for u32

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for u64

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for u8

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for usize

source§

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedI128<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedI16<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedI32<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedI64<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedI8<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU128, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedU128<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU32, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedU32<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU64, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedU64<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU8, FracDst: LeEqU16> WrappingCast<FixedU16<FracDst>> for FixedU8<FracSrc>

source§

fn wrapping_cast(self) -> FixedU16<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU32> WrappingCast<FixedU32<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedU32<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU64> WrappingCast<FixedU64<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedU64<FracDst>

Casts the value.
source§

impl<FracSrc: LeEqU16, FracDst: LeEqU8> WrappingCast<FixedU8<FracDst>> for FixedU16<FracSrc>

source§

fn wrapping_cast(self) -> FixedU8<FracDst>

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<bf16> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> bf16

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<f16> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> f16

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<f32> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> f32

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<f64> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> f64

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<i128> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> i128

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<i16> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> i16

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<i32> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> i32

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<i64> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> i64

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<i8> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> i8

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<isize> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> isize

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<u128> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> u128

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<u16> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> u16

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<u32> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> u32

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<u64> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> u64

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<u8> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> u8

Casts the value.
source§

impl<Frac: LeEqU16> WrappingCast<usize> for FixedU16<Frac>

source§

fn wrapping_cast(self) -> usize

Casts the value.
source§

impl<Frac> Copy for FixedU16<Frac>

source§

impl<Frac> EncodeLike for FixedU16<Frac>where PhantomData<Frac>: Encode,

source§

impl<Frac: LeEqU16> Eq for FixedU16<Frac>

source§

impl<Frac: LeEqU16> FixedOptionalFeatures for FixedU16<Frac>

Auto Trait Implementations§

§

impl<Frac> RefUnwindSafe for FixedU16<Frac>where Frac: RefUnwindSafe,

§

impl<Frac> Send for FixedU16<Frac>where Frac: Send,

§

impl<Frac> Sync for FixedU16<Frac>where Frac: Sync,

§

impl<Frac> Unpin for FixedU16<Frac>where Frac: Unpin,

§

impl<Frac> UnwindSafe for FixedU16<Frac>where Frac: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Az for T

source§

fn az<Dst>(self) -> Dstwhere T: Cast<Dst>,

Casts the value.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,

Casts the value.
source§

impl<T> DecodeAll for Twhere T: Decode,

source§

fn decode_all(input: &mut &[u8]) -> Result<T, Error>

Decode Self and consume all of the given input data. Read more
source§

impl<T> DecodeLimit for Twhere T: Decode,

source§

fn decode_all_with_depth_limit( limit: u32, input: &mut &[u8] ) -> Result<T, Error>

Decode Self and consume all of the given input data. Read more
source§

fn decode_with_depth_limit<I>(limit: u32, input: &mut I) -> Result<T, Error>where I: Input,

Decode Self with the given maximum recursion depth and advance input by the number of bytes consumed. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> KeyedVec for Twhere T: Codec,

source§

fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>

Return an encoding of Self prepended by given slice.
source§

impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,

source§

fn lossy_into(self) -> Dst

Performs the conversion.
source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,

Casts the value.
source§

impl<T> StaticAs for T

source§

fn static_as<Dst>(self) -> Option<Dst>where T: StaticCast<Dst>,

👎Deprecated since 0.3.1: use case is unclear
Casts the value.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,

Casts the value.
source§

impl<S> Codec for Swhere S: Decode + Encode,

source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

source§

impl<T> EncodeLike<&&T> for Twhere T: Encode,

source§

impl<T> EncodeLike<&T> for Twhere T: Encode,

source§

impl<T> EncodeLike<&mut T> for Twhere T: Encode,

source§

impl<T> EncodeLike<Arc<T>> for Twhere T: Encode,

source§

impl<T> EncodeLike<Box<T>> for Twhere T: Encode,

source§

impl<'a, T> EncodeLike<Cow<'a, T>> for Twhere T: ToOwned + Encode,

source§

impl<T> EncodeLike<Rc<T>> for Twhere T: Encode,

source§

impl<S> FullCodec for Swhere S: Decode + FullEncode,

source§

impl<S> FullEncode for Swhere S: Encode + EncodeLike,

source§

impl<T> JsonSchemaMaybe for T

source§

impl<T> StaticTypeInfo for Twhere T: TypeInfo + 'static,