Skip to main content

Signed

Trait Signed 

Source
pub trait Signed:
    PartialEq
    + PartialOrd
    + Zero { }
Expand description

A marker trait for numeric types which are signed, i.e. have positive and negative numbers as well as zero. In addition, PartialEq and PartialOrd are required for assertion purposes. This trait is implemented on all primitive signed integer and float types.

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 Signed for f32

Source§

impl Signed for f64

Source§

impl Signed for i8

Source§

impl Signed for i16

Source§

impl Signed for i32

Source§

impl Signed for i64

Source§

impl Signed for i128

Source§

impl Signed for isize

Implementors§