Trait Signed

Source
pub trait Signed: Number + Neg<Output = Self> {
    // Required methods
    fn abs(self) -> Self;
    fn signum(self) -> Self;
}

Required Methods§

Source

fn abs(self) -> Self

Source

fn signum(self) -> Self

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

Source§

fn abs(self) -> Self

Source§

fn signum(self) -> Self

Source§

impl Signed for f64

Source§

fn abs(self) -> Self

Source§

fn signum(self) -> Self

Source§

impl Signed for i8

Source§

fn abs(self) -> Self

Source§

fn signum(self) -> Self

Source§

impl Signed for i32

Source§

fn abs(self) -> Self

Source§

fn signum(self) -> Self

Source§

impl Signed for i64

Source§

fn abs(self) -> Self

Source§

fn signum(self) -> Self

Source§

impl Signed for i128

Source§

fn abs(self) -> Self

Source§

fn signum(self) -> Self

Source§

impl Signed for isize

Source§

fn abs(self) -> Self

Source§

fn signum(self) -> Self

Implementors§