Module otter_support::prelude
source · [−]Re-exports
Modules
arrayvec provides the types ArrayVec
and ArrayString
:
array-backed vector and string types, which store their contents inline.
derive_more
Create extensions for types you don’t own with extension traits but without the boilerplate.
Utilities for formatting and printing String
s.
This crate provides a single macro called if_chain!
.
Composable external iteration.
Extra iterator adaptors, functions and macros.
Basic functions for dealing with memory.
Procedural macros to derive numeric traits in Rust.
Serde
Serde JSON
Unicode string slices.
Void
Macros
Derive macro generating an impl of the trait Debug
.
Derive macro generating an impl of the trait Hash
.
Macro for writing nested if let
expressions.
Create an iterator over the “cartesian product” of iterators.
Create an iterator running multiple iterators in lockstep.
Throw an error.
Structs
A vector with a fixed capacity.
Configuration for formatting.
The error type returned when a checked integral type conversion fails.
Provides intentionally-wrapped arithmetic on T
.
Enums
Value that either holds a single A or B, or both.
An Ordering
is the result of a comparison between two values.
The empty type for cases which can’t occur.
Constants
The full circle constant (τ)
Traits
A trait for borrowing data.
?
formatting.
Used for immutable dereferencing operations, like *v
.
Used for mutable dereferencing operations, like in *v = 1;
.
A data structure that can be deserialized from any data format supported by Serde.
Format trait for an empty format, {}
.
Parse a value from a string
An iterator that always continues to yield None
when exhausted.
A hashable type.
A trait for hashing an arbitrary stream of bytes.
Used for indexing operations (container[index]
) in immutable contexts.
Used for indexing operations (container[index]
) in mutable contexts.
A data structure that can be serialized into any data format supported by Serde.
Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of TryInto
.
An attempted conversion that consumes self
, which may or may not be
expensive.
A trait for writing or formatting into Unicode-accepting buffers or streams.
Functions
Create an iterator that first iterates i
and then j
.
Compares and returns the maximum of two values.
Iterate i
and j
in lock step.