Expand description
The Talc allocator crate.
For getting started:
- Check out the crate’s README
- Read check out the
TalcandTalckstructures.
Your first step will be Talc::new(...), then claim.
Calling Talc::lock() on it will yield a Talck which implements
[GlobalAlloc] and [Allocator] (if the appropriate feature flags are set).
Modules§
- locking
- Note this only contains
AssumeUnlockablewhich is not generally recommended. Use of thespincrate’s mutex withTalckis a good default.
Structs§
- Claim
OnOom - An out-of-memory handler that attempts to claim the
memory within the given
Spanupon OOM. - ErrOn
Oom - Doesn’t handle out-of-memory conditions, immediate allocation error occurs.
- Span
- Represents an interval of memory
[base, acme) - Talc
- The Talc Allocator!
- Talck
- Talc lock, contains a mutex-locked
Talc.