Mojo 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
Methods
__eq__
__eq__(self: 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!
😔 What went wrong?