TemporalZ

compare

Compares two Instants, returning -1, 0, or 1 if the first is before, equal, or after the second.

See: Temporal.Instant.compare

Parameters

#
a:Instant
Instant
b:Instant
Instant

Source

Implementation

#
pub fn compare(a: Instant, b: Instant) i8 {
    return abi.c.temporal_rs_Instant_compare(a._inner, b._inner);
}