Boolean
Type name: bool
Rust type: bool
A boolean is a data type that can have one of two values: true
or false
.
<bool>true</bool>
<bool>yes</bool>
<bool>anything</bool>
<true />
<bool>false</bool>
<bool>no</bool>
<false />
Conversion to other types
When converting a bool
to other types, it converts to the following values: