Mojo struct
Mode
struct Mode
Defines a Benchmark Mode to distinguish between test runs and actual benchmarks.
Aliases
Benchmark = 0
:Test = 1
:
Fields
- value (
Int
): Represents the mode type.
Implemented traits
AnyType
,
Copyable
,
Movable
,
UnknownDestructibility
Methods
__eq__
__eq__(self, other: Self) -> Bool
Check if its Benchmark mode or test mode.
Args:
- other (
Self
): The mode to be compared against.
Returns:
If its a test mode or benchmark mode.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!