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§
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
impl IsNegative for f32
fn is_negative(&self) -> bool
Source§impl IsNegative for f64
impl IsNegative for f64
fn is_negative(&self) -> bool
Source§impl IsNegative for i8
impl IsNegative for i8
fn is_negative(&self) -> bool
Source§impl IsNegative for i16
impl IsNegative for i16
fn is_negative(&self) -> bool
Source§impl IsNegative for i32
impl IsNegative for i32
fn is_negative(&self) -> bool
Source§impl IsNegative for i64
impl IsNegative for i64
fn is_negative(&self) -> bool
Source§impl IsNegative for i128
impl IsNegative for i128
fn is_negative(&self) -> bool
Source§impl IsNegative for isize
impl IsNegative for isize
fn is_negative(&self) -> bool
Source§impl IsNegative for u8
impl IsNegative for u8
fn is_negative(&self) -> bool
Source§impl IsNegative for u16
impl IsNegative for u16
fn is_negative(&self) -> bool
Source§impl IsNegative for u32
impl IsNegative for u32
fn is_negative(&self) -> bool
Source§impl IsNegative for u64
impl IsNegative for u64
fn is_negative(&self) -> bool
Source§impl IsNegative for u128
impl IsNegative for u128
fn is_negative(&self) -> bool
Source§impl IsNegative for usize
impl IsNegative for usize
fn is_negative(&self) -> bool
Source§impl<T: IsNegative + ?Sized> IsNegative for Box<T>
Available on non-crate feature nostd only.
impl<T: IsNegative + ?Sized> IsNegative for Box<T>
Available on non-crate feature
nostd only.fn is_negative(&self) -> bool
Source§impl<T: IsNegative + ?Sized> IsNegative for Rc<T>
Available on non-crate feature nostd only.
impl<T: IsNegative + ?Sized> IsNegative for Rc<T>
Available on non-crate feature
nostd only.