APIsStandard librarybuiltinboolOn this pagemodulebool Implements the Bool class. These are Mojo built-ins, so you don't need to import them. Structs Bool: The primitive Bool scalar value used in Mojo. Traits Boolable: The Boolable trait describes a type that can be converted to a bool. Functions bool: Get the bool representation of the None type. any: Checks if any element in the list is truthy. all: Checks if all elements in the list are truthy.