Crate contained

Crate contained 

Source
Expand description

contained is a collection of utilities and macros split into two focuses, wrapper types and getter / setter methods.

Modules§

error
this module defines the Error enum and related types for error handling within the crate.
traits
core traits and interfaces for wrappers and their operations, formatting, etc.

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
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.

Enums§

Error
The Error implementation defines the possible errors that can occur within the crate.

Type Aliases§

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

Derive Macros§

Get
The Get derive macros is designed to streamline the process of creating getter methods for structs. Coupled with the custom attributes, one can toggle the generation of mutable getters and define alternative method names for accessing the inner value.
SetWith
The SetWith macros is used to generate setter methods for struct fields.
Wrapper
The Wrapper macro is designed for single-field structs, implementing additional methods supporting interactions with the inner value