Skip to content

Commit

Permalink
entirely rewrote memory usage feature (base traits)
Browse files Browse the repository at this point in the history
- `MemoryUsage` - everything that can report memory usage (Vec, String, &str, u64, etc)
- `MemoryUsageStatic` - everything that can report memory usage in a const context, with `self` in a fn (&'static str (ie. string literals), u64)
- `MemoryUsageConst` - everything that can report memory usage in a const context, without a value (ie. `self`) (u64 etc)
- impl `MemoryUsage` for reference types where `T: MemoryUsage`
- impl all 3 traits for primitives (except str) and arrays
  • Loading branch information
meadowsys committed Aug 16, 2024
1 parent e0dec3b commit 4bad16e
Showing 1 changed file with 336 additions and 270 deletions.
Loading

0 comments on commit 4bad16e

Please sign in to comment.