Trait Ordpub

Source
:trait(pub) Ord other
  .< ( Self other  Bool )
  .> ( Self other  Bool )
  .≤ ( Self other  Bool ) ;
  .≥ ( Self other  Bool ) ;
Description

Total ordering. .≤ defaults to not .>; .≥ defaults to not .<. Impls SHOULD provide a cheaper .cmp-based form when available.

Required Methods

.< ( Self other Bool )

Strict less-than.

.> ( Self other Bool )

Strict greater-than.

Provided Methods

.≤ ( Self other Bool )default

Less-than-or-equal. Default: negation of .>.

.≥ ( Self other Bool )default

Greater-than-or-equal. Default: negation of .<.

Implementors

impl Ord for Int

impl Ord for Float

impl Ord for Str

impl Ord for Symbol

impl Ord for IDuration

impl Ord for Instant

impl Ord for Locale