Fixed

Struct Fixed 

Source
pub struct Fixed(/* private fields */);
Expand description

A signed 24.8 fixed-point number used in the wayland protocol.

This is a signed decimal type which offers a sign bit, 23 bits of integer precision and 8 bits of decimal precision.

§Arithmetic operations

This type implements all of the usual arithmetic operations for numbers. On overflow, they behave like the standard library operations except that multiplication and division always use wrapping semantics.

Implementations§

Source§

impl Fixed

Source

pub const MAX: Self

The largest Fixed.

Source

pub const MIN: Self

The smallest Fixed.

Source

pub const ZERO: Self

The 0 Fixed.

Source

pub const ONE: Self

The 1 Fixed.

Source

pub const TWO: Self

The 2 Fixed.

Source

pub const EPSILON: Self

The smallest positive Fixed.

Source

pub const NEGATIVE_EPSILON: Self

The largest negative Fixed.

Source

pub const fn from_wire(val: i32) -> Self

Creates a Fixed from the raw bits that appear in the wire protocol.

Source

pub const fn to_wire(self) -> i32

Converts this Fixed to the bits that should be set in the wire protocol.

Source

pub const fn to_f64(self) -> f64

Converts this Fixed to an f64.

This conversion is lossless.

Source

pub const fn to_f32_lossy(self) -> f32

Converts this Fixed to an f32.

This conversion is lossy if there are more than 24 significant bits in this Fixed.

Source

pub const fn from_f64_lossy(val: f64) -> Self

Creates a Fixed from an f64.

If the value cannot be represented exactly, the behavior is as when an f64 is cast to an integer. That is

  • Values are rounded towards 0.
  • NaN returns Fixed::ZERO.
  • Values larger than the maximum return Fixed::MAX.
  • Values smaller than the minimum return Fixed::MIN.
Source

pub const fn from_f32_lossy(val: f32) -> Self

Creates a Fixed from an f32.

The conversion behavior is the same as for Fixed::from_f64_lossy.

Source

pub const fn from_i32_saturating(val: i32) -> Self

Creates a Fixed from an i32.

Values outside of the representable range are clamped to Fixed::MIN and Fixed::MAX.

Source

pub const fn from_i64_saturating(val: i64) -> Self

Creates a Fixed from an i64.

Values outside of the representable range are clamped to Fixed::MIN and Fixed::MAX.

Source

pub const fn to_i32_round_towards_nearest(self) -> i32

Converts this Fixed to an i32.

The conversion rounds towards the nearest integer and half-way away from 0.

Source

pub const fn to_i32_round_towards_zero(self) -> i32

Converts this Fixed to an i32.

The conversion rounds towards zero.

Source

pub const fn to_i32_floor(self) -> i32

Converts this Fixed to an i32.

The conversion rounds towards minus infinity.

Source

pub const fn to_i32_ceil(self) -> i32

Converts this Fixed to an i32.

The conversion rounds towards infinity.

Trait Implementations§

Source§

impl Add<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Fixed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Fixed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Fixed) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Fixed

Source§

type Output = Fixed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Fixed) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign for Fixed

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl BitAnd<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Fixed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Fixed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Fixed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd for Fixed

Source§

type Output = Fixed

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Fixed) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for Fixed

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitOr<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Fixed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Fixed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Fixed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for Fixed

Source§

type Output = Fixed

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Fixed) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for Fixed

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitXor<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Fixed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Fixed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Fixed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor for Fixed

Source§

type Output = Fixed

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Fixed) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for Fixed

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl Clone for Fixed

Source§

fn clone(&self) -> Fixed

Returns a duplicate 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 Debug for Fixed

Source§

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

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

impl Display for Fixed

Source§

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

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

impl Div<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Fixed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Fixed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Fixed) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Fixed

Source§

type Output = Fixed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Fixed) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign for Fixed

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl From<Fixed> for f64

Source§

fn from(value: Fixed) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Fixed

Source§

fn from(value: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Fixed

Source§

fn from(value: i8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Fixed

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Fixed

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl Hash for Fixed

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 Mul<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Fixed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Fixed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Fixed) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Fixed

Source§

type Output = Fixed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Fixed) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign for Fixed

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Neg for &Fixed

Source§

type Output = Fixed

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Fixed

Source§

type Output = Fixed

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Not for &Fixed

Source§

type Output = Fixed

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for Fixed

Source§

type Output = Fixed

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Ord for Fixed

Source§

fn cmp(&self, other: &Fixed) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Fixed

Source§

fn eq(&self, other: &Fixed) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Fixed

Source§

fn partial_cmp(&self, other: &Fixed) -> Option<Ordering>

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

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Fixed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Fixed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Fixed) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Fixed

Source§

type Output = Fixed

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Fixed) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign for Fixed

Source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
Source§

impl Shl<&i128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&i8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&isize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &isize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&isize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &isize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&usize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &usize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&usize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &usize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<i8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<isize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: isize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<isize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: isize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u128) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u16) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u64) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u8) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<usize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: usize) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<usize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: usize) -> Self::Output

Performs the << operation. Read more
Source§

impl ShlAssign<&i128> for Fixed

Source§

fn shl_assign(&mut self, rhs: &i128)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i16> for Fixed

Source§

fn shl_assign(&mut self, rhs: &i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i32> for Fixed

Source§

fn shl_assign(&mut self, rhs: &i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i64> for Fixed

Source§

fn shl_assign(&mut self, rhs: &i64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i8> for Fixed

Source§

fn shl_assign(&mut self, rhs: &i8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&isize> for Fixed

Source§

fn shl_assign(&mut self, rhs: &isize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u128> for Fixed

Source§

fn shl_assign(&mut self, rhs: &u128)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u16> for Fixed

Source§

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

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u32> for Fixed

Source§

fn shl_assign(&mut self, rhs: &u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u64> for Fixed

Source§

fn shl_assign(&mut self, rhs: &u64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u8> for Fixed

Source§

fn shl_assign(&mut self, rhs: &u8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&usize> for Fixed

Source§

fn shl_assign(&mut self, rhs: &usize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i128> for Fixed

Source§

fn shl_assign(&mut self, rhs: i128)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i16> for Fixed

Source§

fn shl_assign(&mut self, rhs: i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i32> for Fixed

Source§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i64> for Fixed

Source§

fn shl_assign(&mut self, rhs: i64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i8> for Fixed

Source§

fn shl_assign(&mut self, rhs: i8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<isize> for Fixed

Source§

fn shl_assign(&mut self, rhs: isize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u128> for Fixed

Source§

fn shl_assign(&mut self, rhs: u128)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u16> for Fixed

Source§

fn shl_assign(&mut self, rhs: u16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Fixed

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u64> for Fixed

Source§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u8> for Fixed

Source§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<usize> for Fixed

Source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
Source§

impl Shr<&i128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&i8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&isize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&isize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&usize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&usize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<i8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<isize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<isize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: isize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u128> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u128> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u128) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u16> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u16> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u16) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u64> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u64> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u64) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u8> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u8> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u8) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<usize> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<usize> for Fixed

Source§

type Output = Fixed

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: usize) -> Self::Output

Performs the >> operation. Read more
Source§

impl ShrAssign<&i128> for Fixed

Source§

fn shr_assign(&mut self, rhs: &i128)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i16> for Fixed

Source§

fn shr_assign(&mut self, rhs: &i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i32> for Fixed

Source§

fn shr_assign(&mut self, rhs: &i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i64> for Fixed

Source§

fn shr_assign(&mut self, rhs: &i64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i8> for Fixed

Source§

fn shr_assign(&mut self, rhs: &i8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&isize> for Fixed

Source§

fn shr_assign(&mut self, rhs: &isize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u128> for Fixed

Source§

fn shr_assign(&mut self, rhs: &u128)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u16> for Fixed

Source§

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

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u32> for Fixed

Source§

fn shr_assign(&mut self, rhs: &u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u64> for Fixed

Source§

fn shr_assign(&mut self, rhs: &u64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u8> for Fixed

Source§

fn shr_assign(&mut self, rhs: &u8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&usize> for Fixed

Source§

fn shr_assign(&mut self, rhs: &usize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i128> for Fixed

Source§

fn shr_assign(&mut self, rhs: i128)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i16> for Fixed

Source§

fn shr_assign(&mut self, rhs: i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i32> for Fixed

Source§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i64> for Fixed

Source§

fn shr_assign(&mut self, rhs: i64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i8> for Fixed

Source§

fn shr_assign(&mut self, rhs: i8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<isize> for Fixed

Source§

fn shr_assign(&mut self, rhs: isize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u128> for Fixed

Source§

fn shr_assign(&mut self, rhs: u128)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u16> for Fixed

Source§

fn shr_assign(&mut self, rhs: u16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Fixed

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u64> for Fixed

Source§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u8> for Fixed

Source§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<usize> for Fixed

Source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
Source§

impl Sub<&Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Fixed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Fixed> for Fixed

Source§

type Output = Fixed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Fixed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Fixed> for &Fixed

Source§

type Output = Fixed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Fixed) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Fixed

Source§

type Output = Fixed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Fixed) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for Fixed

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Copy for Fixed

Source§

impl Eq for Fixed

Source§

impl StructuralPartialEq for Fixed

Auto Trait Implementations§

§

impl Freeze for Fixed

§

impl RefUnwindSafe for Fixed

§

impl Send for Fixed

§

impl Sync for Fixed

§

impl Unpin for Fixed

§

impl UnwindSafe for Fixed

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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<Lhs, Rhs> IsntPartialEqExt<Lhs, Rhs> for Lhs
where Lhs: PartialEq<Rhs> + ?Sized, Rhs: ?Sized,

Source§

fn not_eq(&self, other: &Rhs) -> bool

The negation of eq
Source§

fn not_ne(&self, other: &Rhs) -> bool

The negation of ne
Source§

impl<Lhs, Rhs> IsntPartialOrdExt<Lhs, Rhs> for Lhs
where Lhs: PartialOrd<Rhs> + ?Sized, Rhs: ?Sized,

Source§

fn not_lt(&self, other: &Rhs) -> bool

The negation of lt
Source§

fn not_le(&self, other: &Rhs) -> bool

The negation of le
Source§

fn not_gt(&self, other: &Rhs) -> bool

The negation of gt
Source§

fn not_ge(&self, other: &Rhs) -> bool

The negation of ge
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.