// ToUint8 attempts to cast the Boolean to a Uint8.
// The result is not checked for an overflow.
// Use the ToUint8Checked version of this method if you need to check for
// an overflow.
ToUint8 attempts to cast the Boolean to a Uint8.
The result is not checked for an overflow.
Use the ToUint8Checked version of this method if you need to check for
an overflow.
// ToUint8 attempts to cast the Boolean to a Uint8 . // The result is not checked for an overflow . // Use the ToUint8Checked version of this method if you need to check for // an overflow .
func (t Boolean) ToUint8() Uint8 {
	if t {
		return Uint8(1)
	}
	return Uint8(0)
}
func ( t Boolean ) ToUint8 ( ) Uint8 { if t { return Uint8 ( 1 ) } return Uint8 ( 0 ) }
ToUint8 attempts to cast the Boolean to a Uint8.
ToUint8 attempts to cast the Boolean to a Uint8 .