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 |
cmp | Functionality for ordering and comparison. |
convert | Traits for conversions between types. |
default | The |
error | Traits for working with Errors. |
f32 | Constants specific to the |
f64 | Constants specific to the |
fmt | Utilities for formatting and printing |
i8 | Deprecation planned Constants for the 8-bit signed integer type. |
i16 | Deprecation planned Constants for the 16-bit signed integer type. |
i32 | Deprecation planned Constants for the 32-bit signed integer type. |
i64 | Deprecation planned Constants for the 64-bit signed integer type. |
isize | Deprecation 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 |
slice | A dynamically-sized view into a contiguous sequence, |
str | Unicode string slices. |
u8 | Deprecation planned Constants for the 8-bit unsigned integer type. |
u16 | Deprecation planned Constants for the 16-bit unsigned integer type. |
u32 | Deprecation planned Constants for the 32-bit unsigned integer type. |
u64 | Deprecation planned Constants for the 64-bit unsigned integer type. |
usize | Deprecation planned Constants for the pointer-sized unsigned integer type. |
Macros
Clone | Derive macro generating an impl of the trait |
Debug | Derive macro generating an impl of the trait |
Default | Derive macro generating an impl of the trait |
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 |
LinkedList | A doubly-linked list with owned nodes. |
PhantomData | Zero-sized type used to mark things that “act like” they own a |
Range | A (half-open) range bounded inclusively below and exclusively above
( |
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 |
VecDeque | A double-ended queue implemented with a growable ring buffer. |
Wrapping | Provides intentionally-wrapped arithmetic on |
Enums
Cow | A clone-on-write smart pointer. |
Option | The |
Result |
|
Traits
Clone | A common trait for the ability to explicitly duplicate an object. |
Debug |
|
Default | A trait for giving a type a useful default value. |
Deref | Used for immutable dereferencing operations, like |
DerefMut | Used for mutable dereferencing operations, like in |
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 | A value-to-value conversion that consumes the input value. The
opposite of |
ToOwned | A generalization of |
ToString | A trait for converting a value to a |