pub trait Signed: Num + Neg<Self> { fn abs(&self) -> Self; fn abs_sub(&self, other: &Self) -> Self; fn signum(&self) -> Self; fn is_positive(&self) -> bool; fn is_negative(&self) -> bool; }
fn abs(&self) -> Self
fn abs_sub(&self, other: &Self) -> Self
fn signum(&self) -> Self
fn is_positive(&self) -> bool
fn is_negative(&self) -> bool
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).