Skip to main content

Factorials

Trait Factorials 

Source
pub trait Factorials: FloatElement {
    const FACTORIALS: &'static [Self];
}
Expand description

Static factorial tables for a float format.

Required Associated Constants§

Source

const FACTORIALS: &'static [Self]

$0!, 1!, 2!, \ldots$, every factorial finite in Self, so entry i is $i!$.

See the module docs for why the table ends where it does.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Factorials for f32

Source§

const FACTORIALS: &'static [f32]

Source§

impl Factorials for f64

Source§

const FACTORIALS: &'static [f64]

Implementors§

Last built: 2026-09-08 21:35:55 UTC