[][src]Module kas_text::conv

Type conversion utilities

Many indices are represented as u32 instead of usize by this library in order to save space (note that we do not expect usize smaller than u32 and our text representations are not intended to scale anywhere close to u32::MAX bytes of text, so u32 is always an appropriate index type).

Functions

to_u32

Convert usizeu32

to_usize

Convert u32usize