Expand description
Core types for the library.
This module contains everything that isn’t a matcher or formatter.
If you’re just writing tests and not writing custom matchers or formatters, you don’t need anything in this module.
Structs
- An assertion, the starting point in a chain of matchers.
- The context value associated with
DefaultAssertionFormat
. - The result of a failed assertion.
- The provided implementation of
AssertionFormat
. - A formatter which dispatches to different formatters depending on whether the matcher is negated or not.
- A location in a Rust source file.
- A
MatchFailure
which has been formatted with aMatcherFormat
. - A value that has been formatted with
Format
. - Configuration for formatting with
Format
. - A matcher.
- A wrapper over a formatter that negates it.
- The style of text in formatted output.
- The color of text in a terminal emulator.
- The style of text in a terminal emulator.
Enums
- A color to display in a terminal emulator.
- An error from a matcher, meaning it either failed or returned an error.
- The result of a failed matcher.
- The outcome of a matcher, either
Succcess
orFail
.
Traits
- A formatter for failed assertions.
- An object-safe version of
TransformMatch
. - A generic formatter.
- A trait which is implemented to create matchers.
- A formatter for failed matchers.
- A trait which is implemented to create matchers that transform their values.
Functions
- Return a string of whitespace of the given length.
Type Definitions
- A boxed
DynTransformMatch
.