Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

u8

u8

u8 -- 8-bit unsigned integer values

Functions

§infix &(other u8)
 => 
u8
:
Any 
bitwise and, or and xor operations

redefines:

§infix |(other u8)
 => 
u8
:
Any 

redefines:

§infix ^(other u8)
 => 
u8
:
Any 

redefines:

§infix /(other u8)
 => 
u8
:
Any 
division and remainder with check for div-by-zero

redefines:

§infix %(other u8)
 => 
u8
:
Any 
would negation -thiz cause an overflow?
would addition thiz + other cause an overflow or underflow?
would subtraction thiz - other cause an overflow or underflow?
would multiplication thiz * other cause an overflow or underflow?
neg, add, sub, mul with wrap-around semantics
shift operations (unsigned)

redefines:


redefines:

as_i128 => as_i32.as_i128

redefines:

the least significant byte of this integer

redefines:

find the highest 1 bit in this integer and return integer with
this single bit set or 0 if this is 0.
count the number of trailing zeros in this integer.
count the number of 1 bits in the binary representation of this
integer.
is this u8 an ASCII white-space character?

Type Features

maximum
total order
minimum
equality
§type.hash_code(a u8.this.type)
 => 
u64
:
Any 
create hash code from this number
identity element for 'infix +'

redefines:

identity element for 'infix *'

redefines:

returns the number in whose bit representation all bits are ones