Crate sr_std

Source
Expand description

Lowest-abstraction level for the Substrate runtime: just exports useful primitives from std or core/alloc to be used with any code that depends on the runtime. Substrate runtime standard library as compiled when linked with Rust’s standard library.

Modules§

borrow
A module for working with borrowed data.
boxed
The Box<T> type for heap allocation.
cell
Shareable mutable containers.
clone
The Clone trait for types that cannot be ‘implicitly copied’.
cmp
Utilities for comparing and ordering values.
collections
convert
Traits for conversions between types.
fmt
Utilities for formatting and printing Strings.
hash
Generic hashing support.
iter
Composable external iteration.
marker
Primitive traits and types representing basic properties of types.
mem
Basic functions for dealing with memory.
num
Additional functionality for numerics.
ops
Overloadable operators.
prelude
Prelude of common useful imports.
ptr
Manually manage memory through raw pointers.
rc
Single-threaded reference-counting pointers. ‘Rc’ stands for ‘Reference Counted’.
result
Error handling with the Result type.
slice
Utilities for the slice primitive type.
vec
A contiguous growable array type with heap-allocated contents, written Vec<T>.

Macros§

map
vec
Creates a Vec containing the arguments.