Skip to main content
Log in

Mojo trait

GreaterThanComparable

A type which can be greater than compared with other instances of itself.

Implemented traits

AnyType, UnknownDestructibility

Methods

__gt__

__gt__(self: _Self, rhs: _Self) -> Bool

Define whether self is greater than rhs.

Args:

  • rhs (_Self): The right hand side of the comparison.

Returns:

True if self is greater than rhs.