Types module

Cnx provides its own typedefs for fixed-width types and typedefs for various semantic types

Typedefs

using nullptr_t = void*
nullptr_t makes using NULL to represent a null pointer (aka a nullptr) a first-class type of its own
using u8 = uint8_t
u8 is a fixed-width 8 bit unsigned integer
using u16 = uint16_t
u16 is a fixed-width 16 bit unsigned integer
using u32 = uint32_t
u32 is a fixed-width 32 bit unsigned integer
using u64 = uint64_t
u64 is a fixed-width 64 bit unsigned integer
using usize = size_t
usize is the unsigned, platform-dependent type to represent a size
using byte = u8
a byte is an 8 bit unsigned integer
using i8 = int8_t
i8 is a fixed-width 8 bit signed integer
using i16 = int16_t
i16 is a fixed-width 16 bit signed integer
using i32 = int32_t
i32 is a fixed-width 32 bit signed integer
using i64 = int64_t
i64 is a fixed-width 64 bit signed integer
using isize = ssize_t
isize is the platform-dependent type to represent a signed size. It is the signed alternative to usize
using f32 = float
f32 is a 32-bit floating point number
using f64 = double
f64 is a 64-bit floating point number
using cstring = char*
cstring represents a null-terminated legacy C-style string (aka a char*) and should be preferred when semantically referring to a string instead of char* to differentiate from references to a pointer to single char
using const_cstring = const char*
const_cstring represents a const null-terminated legacy C-style string (aka a const char*) and should be preferred when semantically referring to a string instead of char* to differentiate from references to a pointer to single const char
using wcstring = wchar_t*
wcstring represents a null-terminated legacy C-style wide string (aka a wchar_t*) and should be preferred when semantically referring to a wide string instead of wchar_t* to differentiate from references to a pointer to single wchar_t
using const_wcstring = const wchar_t*
const_wcstring represents a const null-terminated legacy C-style wide string (aka a const wchar_t*) and should be preferred when semantically referring to a wide string instead of const wchar_t* to differentiate from references to a pointer to single const wchar_t
using char_ptr = char*
char_ptr represents a pointer to a single char and should be preferred when referring to a pointer to single char over char* to differentiate from references to a string
using const_char_ptr = const char*
const_char_ptr represents a pointer to a single const char and should be preferred when referring to a pointer to single const char over const char* to differentiate from references to a const string
using wchar_t_ptr = wchar_t*
wchar_t_ptr represents a pointer to a single wchar_t and should be preferred when referring to a pointer to single wchar_t over wchar_t* to differentiate from references to a wide string
using const_wchar_t_ptr = const wchar_t*
const_wchar_t_ptr represents a pointer to a single const wchar_t and should be preferred when referring to a pointer to single const wchar_t over const wchar_t* to differentiate from references to a wide string

Defines

#define nullptr
nullptr is a NULL pointer
#define CNX_OFORMAT_U8
u8 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U16
u16 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U32
u32 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U64
u64 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_USIZE
usize decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_UMAX
umax decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_BYTE
byte decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_I8
i8 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_I16
i16 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_I32
i32 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_I64
i64 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_ISIZE
isize decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_IMAX
imax decimal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U8_OCT
u8 octal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U16_OCT
u16 octal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U32_OCT
u32 octal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U64_OCT
u64 octal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_USIZE_OCT
usize octal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_UMAX_OCT
umax octal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_BYTE_OCT
byte octal format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U8_HEX
u8 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U16_HEX
u16 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U32_HEX
u32 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U64_HEX
u64 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_USIZE_HEX
usize lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_UMAX_HEX
umax lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_BYTE_HEX
byte lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U8_HEX_UP
u8 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U16_HEX_UP
u16 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U32_HEX_UP
u32 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_U64_HEX_UP
u64 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_USIZE_HEX_UP
usize upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_UMAX_HEX_UP
umax upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_OFORMAT_BYTE_HEX_UP
byte upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)
#define CNX_IFORMAT_U8
u8 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U16
u16 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U32
u32 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U64
u64 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_USIZE
usize decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_UMAX
umax decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_BYTE
byte decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_I8
i8 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_I16
i16 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_I32
i32 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_I64
i64 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_ISIZE
isize decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_IMAX
imax decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U8_OCT
u8 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U16_OCT
u16 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U32_OCT
u32 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U64_OCT
u64 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_USIZE_OCT
usize octal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_UMAX_OCT
umax octal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_BYTE_OCT
byte octal format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U8_HEX
u8 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U16_HEX
u16 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U32_HEX
u32 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U64_HEX
u64 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_USIZE_HEX
usize lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_UMAX_HEX
umax lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_BYTE_HEX
byte lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U8_HEX_UP
u8 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U16_HEX_UP
u16 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U32_HEX_UP
u32 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_U64_HEX_UP
u64 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_UMAX_HEX_UP
umax upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define CNX_IFORMAT_BYTE_HEX_UP
byte upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)
#define cnx_max_u8
Maximum value of a u8
#define cnx_max_u16
Maximum value of a u16
#define cnx_max_u32
Maximum value of a u32
#define cnx_max_u64
Maximum value of a u64
#define cnx_max_usize
Maximum value of a usize
#define cnx_max_i8
Maximum value of an i8
#define cnx_max_i16
Maximum value of an i16
#define cnx_max_i32
Maximum value of an i32
#define cnx_max_i64
Maximum value of an i64
#define cnx_max_isize
Maximum value of an isize
#define cnx_max_f32
Maximum value of an f32
#define cnx_max_f64
Maximum value of an f64
#define cnx_min_u8
Minimum value of a u8
#define cnx_min_u16
Minimum value of a u16
#define cnx_min_u32
Minimum value of a u32
#define cnx_min_u64
Minimum value of a u64
#define cnx_min_usize
Minimum value of a usize
#define cnx_min_i8
Minimum value of an i8
#define cnx_min_i16
Minimum value of an i16
#define cnx_min_i32
Minimum value of an i32
#define cnx_min_i64
Minimum value of an i64
#define cnx_min_isize
Minimum value of an isize
#define cnx_min_f32
Minimum value of an f32
#define cnx_min_f64
Minimum value of an f64
#define cnx_min_diff_f32
Minimum discernible difference value of an f32
#define cnx_min_diff_f64
Minimum discernible difference value of an f64
#define cnx_max_value(T)
Returns the maximum possible value of the given type.
#define cnx_min_value(T)
Returns the minimum possible value of the given type.

Typedef documentation

typedef void* nullptr_t

nullptr_t makes using NULL to represent a null pointer (aka a nullptr) a first-class type of its own

typedef uint8_t u8

u8 is a fixed-width 8 bit unsigned integer

typedef uint16_t u16

u16 is a fixed-width 16 bit unsigned integer

typedef uint32_t u32

u32 is a fixed-width 32 bit unsigned integer

typedef uint64_t u64

u64 is a fixed-width 64 bit unsigned integer

typedef size_t usize

usize is the unsigned, platform-dependent type to represent a size

typedef u8 byte

a byte is an 8 bit unsigned integer

typedef int8_t i8

i8 is a fixed-width 8 bit signed integer

typedef int16_t i16

i16 is a fixed-width 16 bit signed integer

typedef int32_t i32

i32 is a fixed-width 32 bit signed integer

typedef int64_t i64

i64 is a fixed-width 64 bit signed integer

typedef ssize_t isize

isize is the platform-dependent type to represent a signed size. It is the signed alternative to usize

typedef float f32

f32 is a 32-bit floating point number

typedef double f64

f64 is a 64-bit floating point number

typedef char* cstring

cstring represents a null-terminated legacy C-style string (aka a char*) and should be preferred when semantically referring to a string instead of char* to differentiate from references to a pointer to single char

typedef const char* const_cstring

const_cstring represents a const null-terminated legacy C-style string (aka a const char*) and should be preferred when semantically referring to a string instead of char* to differentiate from references to a pointer to single const char

typedef wchar_t* wcstring

wcstring represents a null-terminated legacy C-style wide string (aka a wchar_t*) and should be preferred when semantically referring to a wide string instead of wchar_t* to differentiate from references to a pointer to single wchar_t

typedef const wchar_t* const_wcstring

const_wcstring represents a const null-terminated legacy C-style wide string (aka a const wchar_t*) and should be preferred when semantically referring to a wide string instead of const wchar_t* to differentiate from references to a pointer to single const wchar_t

typedef char* char_ptr

char_ptr represents a pointer to a single char and should be preferred when referring to a pointer to single char over char* to differentiate from references to a string

typedef const char* const_char_ptr

const_char_ptr represents a pointer to a single const char and should be preferred when referring to a pointer to single const char over const char* to differentiate from references to a const string

typedef wchar_t* wchar_t_ptr

wchar_t_ptr represents a pointer to a single wchar_t and should be preferred when referring to a pointer to single wchar_t over wchar_t* to differentiate from references to a wide string

typedef const wchar_t* const_wchar_t_ptr

const_wchar_t_ptr represents a pointer to a single const wchar_t and should be preferred when referring to a pointer to single const wchar_t over const wchar_t* to differentiate from references to a wide string

Define documentation

#define nullptr

nullptr is a NULL pointer

#define CNX_OFORMAT_U8

u8 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U16

u16 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U32

u32 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U64

u64 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_USIZE

usize decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_UMAX

umax decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_BYTE

byte decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_I8

i8 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_I16

i16 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_I32

i32 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_I64

i64 decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_ISIZE

isize decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_IMAX

imax decimal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U8_OCT

u8 octal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U16_OCT

u16 octal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U32_OCT

u32 octal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U64_OCT

u64 octal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_USIZE_OCT

usize octal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_UMAX_OCT

umax octal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_BYTE_OCT

byte octal format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U8_HEX

u8 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U16_HEX

u16 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U32_HEX

u32 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U64_HEX

u64 lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_USIZE_HEX

usize lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_UMAX_HEX

umax lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_BYTE_HEX

byte lower-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U8_HEX_UP

u8 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U16_HEX_UP

u16 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U32_HEX_UP

u32 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_U64_HEX_UP

u64 upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_USIZE_HEX_UP

usize upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_UMAX_HEX_UP

umax upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_OFORMAT_BYTE_HEX_UP

byte upper-case hex format specifier for legacy formatted output functions (printf, fprintf, etc)

#define CNX_IFORMAT_U8

u8 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U16

u16 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U32

u32 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U64

u64 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_USIZE

usize decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_UMAX

umax decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_BYTE

byte decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_I8

i8 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_I16

i16 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_I32

i32 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_I64

i64 decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_ISIZE

isize decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_IMAX

imax decimal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U8_OCT

u8 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U16_OCT

u16 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U32_OCT

u32 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U64_OCT

u64 octal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_USIZE_OCT

usize octal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_UMAX_OCT

umax octal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_BYTE_OCT

byte octal format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U8_HEX

u8 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U16_HEX

u16 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U32_HEX

u32 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U64_HEX

u64 lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_USIZE_HEX

usize lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_UMAX_HEX

umax lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_BYTE_HEX

byte lower-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U8_HEX_UP

u8 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U16_HEX_UP

u16 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U32_HEX_UP

u32 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_U64_HEX_UP

u64 upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_UMAX_HEX_UP

umax upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define CNX_IFORMAT_BYTE_HEX_UP

byte upper-case hex format specifier for legacy formatted input functions (scanf, fscanf, etc)

#define cnx_max_u8

Maximum value of a u8

#define cnx_max_u16

Maximum value of a u16

#define cnx_max_u32

Maximum value of a u32

#define cnx_max_u64

Maximum value of a u64

#define cnx_max_usize

Maximum value of a usize

#define cnx_max_i8

Maximum value of an i8

#define cnx_max_i16

Maximum value of an i16

#define cnx_max_i32

Maximum value of an i32

#define cnx_max_i64

Maximum value of an i64

#define cnx_max_isize

Maximum value of an isize

#define cnx_max_f32

Maximum value of an f32

#define cnx_max_f64

Maximum value of an f64

#define cnx_min_u8

Minimum value of a u8

#define cnx_min_u16

Minimum value of a u16

#define cnx_min_u32

Minimum value of a u32

#define cnx_min_u64

Minimum value of a u64

#define cnx_min_usize

Minimum value of a usize

#define cnx_min_i8

Minimum value of an i8

#define cnx_min_i16

Minimum value of an i16

#define cnx_min_i32

Minimum value of an i32

#define cnx_min_i64

Minimum value of an i64

#define cnx_min_isize

Minimum value of an isize

#define cnx_min_f32

Minimum value of an f32

#define cnx_min_f64

Minimum value of an f64

#define cnx_min_diff_f32

Minimum discernible difference value of an f32

#define cnx_min_diff_f64

Minimum discernible difference value of an f64

#define cnx_max_value(T)

Returns the maximum possible value of the given type.

Parameters
T - The type to get the maximum value for
Returns the maximum value

#define cnx_min_value(T)

Returns the minimum possible value of the given type.

Parameters
T - The type to get the minimum value for
Returns the minimum value