Trait Field

Source
pub trait Field
where Self: Copy + Add<Self, Output = Self> + Mul<Self, Output = Self> + Neg<Output = Self> + Sub<Self, Output = Self> + Div<Self, Output = Self>,
{ const ONE: Self; const ZERO: Self; // Required method fn equals(&self, lhs: Self) -> bool; }

Required Associated Constants§

Source

const ONE: Self

Source

const ZERO: Self

Required Methods§

Source

fn equals(&self, lhs: Self) -> bool

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 Field for i8

Source§

const ONE: i8 = 1i8

Source§

const ZERO: i8 = 0i8

Source§

fn equals(&self, lhs: i8) -> bool

Source§

impl Field for i16

Source§

const ONE: i16 = 1i16

Source§

const ZERO: i16 = 0i16

Source§

fn equals(&self, lhs: i16) -> bool

Source§

impl Field for i32

Source§

const ONE: i32 = 1i32

Source§

const ZERO: i32 = 0i32

Source§

fn equals(&self, lhs: i32) -> bool

Source§

impl Field for i64

Source§

const ONE: i64 = 1i64

Source§

const ZERO: i64 = 0i64

Source§

fn equals(&self, lhs: i64) -> bool

Source§

impl Field for isize

Source§

const ONE: isize = 1isize

Source§

const ZERO: isize = 0isize

Source§

fn equals(&self, lhs: isize) -> bool

Implementors§