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