How i128 are stored in a 32 bit OS architecture?

I presume you mean idiomatic? There are unlimited idiotic ways to do things in any programming language.

Use usize for counting things that are in memory. Otherwise use the right size for whatever you are doing. Don't use u32 to track the U.S. national debt, but it's fine for counting the eggs in most recipes.

5 Likes