Function std::cmp::lexical_ordering
pub fn lexical_ordering(o1: Ordering, o2: Ordering) -> Ordering
Return o1
if it is not Equal
, otherwise o2
. Simulates the
lexical ordering on a type (int, int)
.
pub fn lexical_ordering(o1: Ordering, o2: Ordering) -> Ordering
Return o1
if it is not Equal
, otherwise o2
. Simulates the
lexical ordering on a type (int, int)
.
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
).