Skip to main content
Log in

Mojo trait

LessThanOrEqualComparable

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

Implemented traits

AnyType, UnknownDestructibility

Methods

__le__

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

Define whether self is less than or equal to rhs.

Args:

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

Returns:

True if self is less than or equal to rhs.