Skip to main content
Log in

Mojo trait

LessThanComparable

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

Implemented traits

AnyType, UnknownDestructibility

Methods

__lt__

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

Define whether self is less than rhs.

Args:

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

Returns:

True if self is less than rhs.