Skip to main content

IsNegative

Trait IsNegative 

Source
pub trait IsNegative {
    // Required method
    fn is_negative(&self) -> bool;
}
Expand description

Trait defining instance method is_negative() : bool that indicates whether the implementing type instance has a value that is deemed to be negative.

§Additional Implementations on Foreign Types

§Built-in Types

If the feature "implement-IsNegative-for-built_ins" is defined (as it is by "default"), then this is also implemented for the following types:

Required Methods§

Source

fn is_negative(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IsNegative for f32

Source§

impl IsNegative for f64

Source§

impl IsNegative for i8

Source§

impl IsNegative for i16

Source§

impl IsNegative for i32

Source§

impl IsNegative for i64

Source§

impl IsNegative for i128

Source§

impl IsNegative for isize

Source§

impl IsNegative for u8

Source§

impl IsNegative for u16

Source§

impl IsNegative for u32

Source§

impl IsNegative for u64

Source§

impl IsNegative for u128

Source§

impl IsNegative for usize

Source§

impl<T: IsNegative + ?Sized> IsNegative for Box<T>

Available on non-crate feature nostd only.
Source§

impl<T: IsNegative + ?Sized> IsNegative for Rc<T>

Available on non-crate feature nostd only.

Implementors§