Skip to main content

Pi

Trait Pi 

Source
pub trait Pi {
    // Required method
    fn pi() -> Self;
}
Expand description

This type has a constant PI

Required Methods§

Source

fn pi() -> Self

Get a value that represents Pi

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Real> Pi for T