Skip to main content

Field

Trait Field 

Source
pub trait Field:
    Num
    + Div<Output = Self>
    + Rem<Output = Self> {
    // Required methods
    fn div(self, other: Self) -> Self;
    fn reciprocal(self) -> Self;
}
Expand description

Division ring: everything Num is, plus division and reciprocal.

Required Methods§

Source

fn div(self, other: Self) -> Self

Divide self by other.

Source

fn reciprocal(self) -> Self

1 / self.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Field for f32

Source§

fn div(self, other: Self) -> Self

Source§

fn reciprocal(self) -> Self

Source§

impl Field for f64

Source§

fn div(self, other: Self) -> Self

Source§

fn reciprocal(self) -> Self

Implementors§