Trait Pi

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

A type which can represent Pi.

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() -> f32

Source§

impl Pi for f64

Source§

fn pi() -> f64

Implementors§

Source§

impl<'a, T: Real + Primitive> Pi for Record<'a, T>

Source§

impl<T: Real + Primitive> Pi for Trace<T>