Skip to main content

Signed

Trait Signed 

Source
pub trait Signed: Sized {
    // Required methods
    fn abs(&self) -> Option<Self>;
    fn signum(&self) -> Self;
    fn is_positive(&self) -> bool;
    fn is_negative(&self) -> bool;
}

Required Methods§

Source

fn abs(&self) -> Option<Self>

Source

fn signum(&self) -> Self

Source

fn is_positive(&self) -> bool

Source

fn is_negative(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§