Booleans v0.1.0

Source
The boolean types bool8 to bool512, with their width constants. The built-in bool is bool8 and shares its constants.

bool8

extend bool8

One of two values, stored in 8 bits.

Source

Constants

Bits

pub const Bits: uint = 8;

The number of bits in the representation.

Source

Bytes

pub const Bytes: uint = 1;

The number of bytes in the representation.

Source

bool16

extend bool16

One of two values, stored in 16 bits.

Source

Constants

Bits

pub const Bits: uint = 16;

The number of bits in the representation.

Source

Bytes

pub const Bytes: uint = 2;

The number of bytes in the representation.

Source

bool32

extend bool32

One of two values, stored in 32 bits.

Source

Constants

Bits

pub const Bits: uint = 32;

The number of bits in the representation.

Source

Bytes

pub const Bytes: uint = 4;

The number of bytes in the representation.

Source

bool64

extend bool64

One of two values, stored in 64 bits.

Source

Constants

Bits

pub const Bits: uint = 64;

The number of bits in the representation.

Source

Bytes

pub const Bytes: uint = 8;

The number of bytes in the representation.

Source

bool128

extend bool128

One of two values, stored in 128 bits.

Source

Constants

Bits

pub const Bits: uint = 128;

The number of bits in the representation.

Source

Bytes

pub const Bytes: uint = 16;

The number of bytes in the representation.

Source

bool256

extend bool256

One of two values, stored in 256 bits.

Source

Constants

Bits

pub const Bits: uint = 256;

The number of bits in the representation.

Source

Bytes

pub const Bytes: uint = 32;

The number of bytes in the representation.

Source

bool512

extend bool512

One of two values, stored in 512 bits.

Source

Constants

Bits

pub const Bits: uint = 512;

The number of bits in the representation.

Source

Bytes

pub const Bytes: uint = 64;

The number of bytes in the representation.

Source