pub trait Signed:
Div<NonZero<Self>, Output = CtOption<Self>>
+ for<'a> Div<&'a NonZero<Self>, Output = CtOption<Self>>
+ From<i8>
+ From<i16>
+ From<i32>
+ From<i64>
+ Gcd<Output = Self::Unsigned>
+ Integer {
type Unsigned: Unsigned;
// Required methods
fn abs_sign(&self) -> (Self::Unsigned, Choice);
fn is_negative(&self) -> Choice;
fn is_positive(&self) -> Choice;
// Provided method
fn abs(&self) -> Self::Unsigned { ... }
}Expand description
Signed Integers.
Required Associated Types§
Required Methods§
Sourcefn is_negative(&self) -> Choice
fn is_negative(&self) -> Choice
Sourcefn is_positive(&self) -> Choice
fn is_positive(&self) -> Choice
Provided Methods§
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.