wiwi::num

Trait Neg

Source
pub trait Neg
where Self: Sealed,
{ type Output; // Required method fn neg(self) -> Self::Output; }

Required Associated Types§

Required Methods§

Source

fn neg(self) -> Self::Output

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

Source§

type Output = i8

Source§

fn neg(self) -> i8

Implementors§