Trait figures::Zero

source ·
pub trait Zero {
    const ZERO: Self;

    // Required method
    fn is_zero(&self) -> bool;
}
Expand description

A type that can represent a zero-value.

Required Associated Constants§

source

const ZERO: Self

The zero value for this type.

Required Methods§

source

fn is_zero(&self) -> bool

Returns true if self represents 0.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Zero for i8

source§

const ZERO: Self = 0i8

source§

fn is_zero(&self) -> bool

source§

impl Zero for i16

source§

const ZERO: Self = 0i16

source§

fn is_zero(&self) -> bool

source§

impl Zero for i32

source§

const ZERO: Self = 0i32

source§

fn is_zero(&self) -> bool

source§

impl Zero for i64

source§

const ZERO: Self = 0i64

source§

fn is_zero(&self) -> bool

source§

impl Zero for i128

source§

const ZERO: Self = 0i128

source§

fn is_zero(&self) -> bool

source§

impl Zero for isize

source§

const ZERO: Self = 0isize

source§

fn is_zero(&self) -> bool

source§

impl Zero for u8

source§

const ZERO: Self = 0u8

source§

fn is_zero(&self) -> bool

source§

impl Zero for u16

source§

const ZERO: Self = 0u16

source§

fn is_zero(&self) -> bool

source§

impl Zero for u32

source§

const ZERO: Self = 0u32

source§

fn is_zero(&self) -> bool

source§

impl Zero for u64

source§

const ZERO: Self = 0u64

source§

fn is_zero(&self) -> bool

source§

impl Zero for u128

source§

const ZERO: Self = 0u128

source§

fn is_zero(&self) -> bool

source§

impl Zero for usize

source§

const ZERO: Self = 0usize

source§

fn is_zero(&self) -> bool

Implementors§

source§

impl Zero for Angle

source§

const ZERO: Self = _

source§

impl Zero for Lp

source§

const ZERO: Self = _

source§

impl Zero for Px

source§

const ZERO: Self = _

source§

impl Zero for UPx

source§

const ZERO: Self = _

source§

impl<Unit> Zero for Point<Unit>where Unit: Zero,

source§

const ZERO: Self = _

source§

impl<Unit> Zero for Rect<Unit>where Unit: Zero,

source§

const ZERO: Self = _

source§

impl<Unit> Zero for Size<Unit>where Unit: Zero,

source§

const ZERO: Self = _