Trait Cos

Source
pub trait Cos {
    // Required method
    fn cos_(self) -> Self;
}
Expand description

This trait provides the interface for the cosine function.

Required Methods§

Source

fn cos_(self) -> Self

Computes the cosine of self, rounding to the nearest.

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 Cos for f64

Source§

fn cos_(self) -> Self

Computes the cosine of self, rounding to the nearest.

Source§

impl Cos for Complex<f64>

Source§

fn cos_(self) -> Self

Computes the cosine of self, rounding to the nearest.

Implementors§