Module sbor::rust

source ·
Expand description

A facade of Rust types.

Modules§

  • Memory allocation APIs.
  • A module for working with borrowed data.
  • The Box<T> type for heap allocation.
  • Shareable mutable containers.
  • The Clone trait for types that cannot be ‘implicitly copied’.
  • Utilities for comparing and ordering values.
  • Collection types.
  • Traits for conversions between types.
  • The Default trait for types with a default value.
  • Generic hashing support.
  • Composable external iteration.
  • Primitive traits and types representing basic properties of types.
  • Basic functions for dealing with memory.
  • Additional functionality for numerics.
  • Overloadable operators.
  • Optional values.
  • Manually manage memory through raw pointers.
  • Single-threaded reference-counting pointers. ‘Rc’ stands for ‘Reference Counted’.
  • Error handling with the Result type.
  • Utilities for the slice primitive type.
  • Utilities for the str primitive type.
  • A UTF-8–encoded, growable string.
  • Useful synchronization primitives.

Macros§

  • Creates a String using interpolation of runtime expressions.
  • Creates a Vec containing the arguments.