Docs.rs
  • sp-std-2.0.0-alpha.5
    • sp-std 2.0.0-alpha.5
    • Docs.rs crate page
    • GPL-3.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • github:paritytech:core-devs
    • parity-crate-owner
    • Dependencies
    • Versions
  • Go to latest stable release
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Crate sp_std

See all sp_std's items

  • Modules
  • Macros

Crates

  • sp_std
Change settings

[−][src]Crate sp_std

[−] Expand description

Lowest-abstraction level for the Substrate runtime: just exports useful primitives from std or client/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

alloc

Memory allocation APIs

any

This module implements the Any trait, which enables dynamic typing of any 'static type through runtime reflection.

borrow

A module for working with borrowed data.

boxed

A pointer type for heap allocation.

cell

Shareable mutable containers.

clone

The Clone trait for types that cannot be 'implicitly copied'.

cmp

Functionality for ordering and comparison.

collections
convert

Traits for conversions between types.

default

The Default trait for types which may have meaningful default values.

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

A dynamically-sized view into a contiguous sequence, [T].

str

Unicode string slices.

vec

A contiguous growable array type with heap-allocated contents, written Vec<T>.

Macros

if_std

Feature gate some code that should only be run when std feature is enabled.

map
vec

Creates a Vec containing the arguments.

Results for ReverseSearcher

In Names
(1)
In Parameters
(0)
In Return Types
(0)
sp_std::str::pattern::ReverseSearcherA reverse searcher for a string pattern. 
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.

Keyboard Shortcuts

?
Show this help dialog
S
Focus the search field
↑
Move up in search results
↓
Move down in search results
↹
Switch tab
⏎
Go to active search result
+
Expand all sections
-
Collapse all sections

Search Tricks

Prefix searches with a type followed by a colon (e.g., fn:) to restrict the search to a given type.

Accepted types are: fn, mod, struct, enum, trait, type, macro, and const.

Search functions by type signature (e.g., vec -> usize or * -> vec)

Search multiple things at once by splitting your query with comma (e.g., str,u8 or String,struct:Vec,test)

You can look for items with an exact name by putting double quotes around your request: "string"

Look for items inside another one by searching for a path: vec::Vec