Crate contained

Crate contained 

Source
Expand description

§contained

Welcome to contained! A library focused on providing useful abstractions, macros, and utilities for handling so-called wrapper types. In short, a wrapper type is any implemented object capable of using #[repr(transparent)].

Modules§

error
this module defines the core error type for the crate
prelude

Macros§

binary_wrapper
The binary_wrapper! macro generates implementations for the core binary operations onto a generic wrapper type. It supports both tuple structs and structs with named fields.
fmt_wrapper
A macro to implement formatting traits for wrapper structs
impl_wrapper_unary
unary_wrapper
The unary_wrapper! macro generates implementations for the core unary operations onto a generic wrapper type. It supports both tuple structs and structs with named fields.
wrapper

Enums§

Error
The custom error type for the crate.

Type Aliases§

Result
a type alias for a Result configured to use the custom Error type.

Derive Macros§

Wrapper
The Wrapper macro is designed for single-field structs, implementing additional methods supporting interactions with the inner value