Skip to main content

Compound

Trait Compound 

Source
pub trait Compound<N> {
    type Output;

    // Required method
    fn compound(self, n: N) -> Self::Output;
}
Expand description

Calculates the compound function $(1+x)^n$ of a number $x$.

Required Associated Types§

Required Methods§

Source

fn compound(self, n: N) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§