[][src]Module abi_stable::const_utils

Utilities for const contexts.

Functions

abs_sub_usize

Gets the absolute value of a usize subtraction.

empty_slice

Creates an empty slice.

log2_usize

The base 2 logarithm of a usize.

low_bit_mask_u64

Gets a u64 where the lowest bit_count bits are ones and the rest are zeroes.

max_u64

The maximum of two u64s

max_usize

The maximum of two usizes

min_max_usize

The minimum and maximum of two usizes

min_u8

The minimum of two u64s

min_u16

The minimum of two u64s

min_u64

The minimum of two u64s

min_usize

The minimum of two usizes

saturating_sub_u8

Saturating substraction of u8s.

saturating_sub_usize

Saturating substraction of usizes.