pub trait FixedOpwhere
Self: Sized,{
// Required methods
fn fixed_sqrt(f: &Self) -> Option<Self>;
fn fixed_pow(f: &Self, p: &Self) -> Option<Self>;
fn fixed_exp(f: &Self) -> Option<Self>;
fn fixed_ln(f: &Self) -> Option<Self>;
}Expand description
Unified interface for core fixed-point mathematical operations.
Implemented for all four fixed-point types: [FixedU64], [FixedU128],
[FixedI64], [FixedI128]. Enables generic code that works across the
entire fixed-point family through a single trait bound.
Required Methods§
Sourcefn fixed_sqrt(f: &Self) -> Option<Self>
fn fixed_sqrt(f: &Self) -> Option<Self>
Square root (real domain).
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.