Expand description
The Talc allocator crate.
For getting started:
- Check out the crate’s README
- Read check out the
Talc
andTalck
structures.
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§
- Note this only contains
AssumeUnlockable
which is not generally recommended. Use of thespin
crate’s mutex withTalck
is a good default.
Structs§
- An out-of-memory handler that attempts to claim the memory within the given
Span
upon OOM. - Doesn’t handle out-of-memory conditions, immediate allocation error occurs.
- Represents an interval of memory
[base, acme)
- The Talc Allocator!
- Talc lock, contains a mutex-locked
Talc
.