Pi

Trait Pi 

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

Required Methods§

Source

fn pi() -> 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.

Implementations on Foreign Types§

Source§

impl Pi for f32

Source§

fn pi() -> Self

Source§

impl Pi for f64

Source§

fn pi() -> Self

Implementors§