Module ockam_core::lib[][src]

A facade around the various collections and primitives needed when using no alloc, alloc only, or std modes

Modules

clone

The Clone trait for types that cannot be ‘implicitly copied’.

cmp

Functionality for ordering and comparison.

convert

Traits for conversions between types.

default

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

error

Traits for working with Errors.

f32

Constants specific to the f32 single-precision floating point type.

f64

Constants specific to the f64 double-precision floating point type.

fmt

Utilities for formatting and printing Strings.

i8Deprecation planned

Constants for the 8-bit signed integer type.

i16Deprecation planned

Constants for the 16-bit signed integer type.

i32Deprecation planned

Constants for the 32-bit signed integer type.

i64Deprecation planned

Constants for the 64-bit signed integer type.

isizeDeprecation planned

Constants for the pointer-sized signed integer type.

iter

Composable external iteration.

marker

Primitive traits and types representing basic properties of types.

mem

Basic functions for dealing with memory.

net

Networking primitives for TCP/UDP communication.

num

Additional functionality for numerics.

option

Optional values.

result

Error handling with the Result type.

slice

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

str

Unicode string slices.

u8Deprecation planned

Constants for the 8-bit unsigned integer type.

u16Deprecation planned

Constants for the 16-bit unsigned integer type.

u32Deprecation planned

Constants for the 32-bit unsigned integer type.

u64Deprecation planned

Constants for the 64-bit unsigned integer type.

usizeDeprecation planned

Constants for the pointer-sized unsigned integer type.

Macros

Clone

Derive macro generating an impl of the trait Clone.

Debug

Derive macro generating an impl of the trait Debug.

Default

Derive macro generating an impl of the trait Default.

Structs

BTreeMap

A map based on a B-Tree.

BTreeSet

A set based on a B-Tree.

BinaryHeap

A priority queue implemented with a binary heap.

Box

A pointer type for heap allocation.

Cell

A mutable memory location.

HashMap

A hash map implemented with quadratic probing and SIMD lookup.

HashSet

A hash set implemented as a HashMap where the value is ().

LinkedList

A doubly-linked list with owned nodes.

PhantomData

Zero-sized type used to mark things that “act like” they own a T.

Range

A (half-open) range bounded inclusively below and exclusively above (start..end).

RefCell

A mutable memory location with dynamically checked borrow rules

String

A UTF-8–encoded, growable string.

Vec

A contiguous growable array type, written as Vec<T> and pronounced ‘vector’.

VecDeque

A double-ended queue implemented with a growable ring buffer.

Wrapping

Provides intentionally-wrapped arithmetic on T.

Enums

Cow

A clone-on-write smart pointer.

Option

The Option type. See the module level documentation for more.

Result

Result is a type that represents either success (Ok) or failure (Err).

Traits

Clone

A common trait for the ability to explicitly duplicate an object.

Debug

? formatting.

Default

A trait for giving a type a useful default value.

Deref

Used for immutable dereferencing operations, like *v.

DerefMut

Used for mutable dereferencing operations, like in *v = 1;.

Display

Format trait for an empty format, {}.

From

Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.

Into

A value-to-value conversion that consumes the input value. The opposite of From.

ToOwned

A generalization of Clone to borrowed data.

ToString

A trait for converting a value to a String.