Expand description
§Müsli Rust core allocation and collections library
This library provides smart pointers and collections for managing allocated
values. This is similar to the Rust alloc crate, it provides
similar but more limited functionality. However it can do so safely using
the Müsli-specific Allocator trait allowing these types to be used in
no_std environments without requiring a nightly compiler or unsafe.
Structs§
- Alloc
Error - An allocation error.
- Box
- A Müsli-allocated pointer type that uniquely owns a heap allocation of type
T. - From
Utf8 Error - A possible error value when converting a
Stringfrom a UTF-8 byte vector. - String
- A Müsli-allocated UTF-8–encoded, growable string.
- Vec
- A Müsli-allocated contiguous growable array type, written as
Vec<T>, short for ‘vector’.
Traits§
- Alloc
- A value allocated through
Allocator::alloc. - Allocator
- An allocator that can be used in combination with a context.
- Global
Allocator - The trait governing a global allocator.
- ToOwned
- The local `ToOwned`` implementation for Musli’s allocation system.