pub trait IsPositive {
// Required method
fn is_positive(&self) -> bool;
}Expand description
Trait defining instance method is_positive() : bool that indicates
whether the implementing type instance has a value that is deemed to be
positive.
§Additional Implementations on Foreign Types
§Built-in Types
If the feature "implement-IsPositive-for-built_ins"
is defined (as it is by "default"), then this is also implemented
for the following types:
Required Methods§
fn is_positive(&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 IsPositive for f32
impl IsPositive for f32
fn is_positive(&self) -> bool
Source§impl IsPositive for f64
impl IsPositive for f64
fn is_positive(&self) -> bool
Source§impl IsPositive for i8
impl IsPositive for i8
fn is_positive(&self) -> bool
Source§impl IsPositive for i16
impl IsPositive for i16
fn is_positive(&self) -> bool
Source§impl IsPositive for i32
impl IsPositive for i32
fn is_positive(&self) -> bool
Source§impl IsPositive for i64
impl IsPositive for i64
fn is_positive(&self) -> bool
Source§impl IsPositive for i128
impl IsPositive for i128
fn is_positive(&self) -> bool
Source§impl IsPositive for isize
impl IsPositive for isize
fn is_positive(&self) -> bool
Source§impl IsPositive for u8
impl IsPositive for u8
fn is_positive(&self) -> bool
Source§impl IsPositive for u16
impl IsPositive for u16
fn is_positive(&self) -> bool
Source§impl IsPositive for u32
impl IsPositive for u32
fn is_positive(&self) -> bool
Source§impl IsPositive for u64
impl IsPositive for u64
fn is_positive(&self) -> bool
Source§impl IsPositive for u128
impl IsPositive for u128
fn is_positive(&self) -> bool
Source§impl IsPositive for usize
impl IsPositive for usize
fn is_positive(&self) -> bool
Source§impl<T: IsPositive + ?Sized> IsPositive for Box<T>
Available on non-crate feature nostd only.
impl<T: IsPositive + ?Sized> IsPositive for Box<T>
Available on non-crate feature
nostd only.fn is_positive(&self) -> bool
Source§impl<T: IsPositive + ?Sized> IsPositive for Rc<T>
Available on non-crate feature nostd only.
impl<T: IsPositive + ?Sized> IsPositive for Rc<T>
Available on non-crate feature
nostd only.