Module otter_base::prelude[][src]

Re-exports

pub use void;
pub use crate::html::*;
pub use crate::geometry::CoordinateOverflow;
pub use crate::geometry::PosC;
pub use crate::geometry::PosPromote;
pub use crate::hformat;
pub use crate::hformat_as_display;
pub use crate::hwrite;
pub use crate::misc::default;
pub use crate::misc::display_as_debug;
pub use crate::if_let;

Modules

fmt

Utilities for formatting and printing Strings.

iter

Composable external iteration.

mem

Basic functions for dealing with memory.

str

Unicode string slices.

Macros

Debug

Derive macro generating an impl of the trait Debug.

Hash

Derive macro generating an impl of the trait Hash.

if_chain

Macro for writing nested if let expressions.

izip

Create an iterator running multiple iterators in lockstep.

throw

Throw an error.

Structs

ArrayVec

A vector with a fixed capacity.

Formatter

Configuration for formatting.

TryFromIntError

The error type returned when a checked integral type conversion fails.

Wrapping

Provides intentionally-wrapped arithmetic on T.

Enums

Ordering

An Ordering is the result of a comparison between two values.

Void

The empty type for cases which can’t occur.

Traits

Borrow

A trait for borrowing data.

Debug

? formatting.

Deref

Used for immutable dereferencing operations, like *v.

DerefMut

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

Deserialize

A data structure that can be deserialized from any data format supported by Serde.

Display

Format trait for an empty format, {}.

FromStr

Parse a value from a string

Hash

A hashable type.

Hasher

A trait for hashing an arbitrary stream of bytes.

Index

Used for indexing operations (container[index]) in immutable contexts.

IndexMut

Used for indexing operations (container[index]) in mutable contexts.

Serialize

A data structure that can be serialized into any data format supported by Serde.

TryFrom

Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.

TryInto

An attempted conversion that consumes self, which may or may not be expensive.

Functions

max

Compares and returns the maximum of two values.

Attribute Macros

ext

See crate docs for more info.

throws

Derive Macros

Deserialize
DeserializeFromStr

Deserialize value by using it’s FromStr implementation

Error
Serialize
SerializeDisplay

Serialize value by using it’s Display implementation