FixExt

Trait FixExt 

Source
pub trait FixExt: Sized {
    // Required methods
    fn one() -> Self;
    fn zero() -> Self;
}
Expand description

Domain specific extensions to the Fix type as it’s used in this project.

Required Methods§

Source

fn one() -> Self

This precision’s equivalent of 1.

Source

fn zero() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Bits, Exp> FixExt for Fix<Bits, U10, NInt<Exp>>
where Exp: Unsigned + NonZero + IsLess<U20>, Bits: From<u64>,