Crate spacetimedb_data_structures

Source
Expand description

This crate provides assorted data structures that are used in spacetimedb. These structures are general and could be used outside spacetimedb.

Modules§

error_stream
Types, traits, and macros for working with non-empty streams of errors.
map
nstr
Provides UTF-8 strings of compile-time-known lengths.
object_pool
slim_slice
Defines slimmer versions of slices, both shared, mutable, and owned.

Macros§

expect_error_matching
Helper macro to match against an error stream, expecting a specific error. For use in tests. Panics if a matching error is not found. Multiple matches are allowed.
nstr
Constructs an NStr<N> given a string literal of N bytes in length.