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
Errorenum 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§
Type Aliases§
Derive Macros§
- Get
- The
Getderive 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
SetWithmacros is used to generate setter methods for struct fields. - Wrapper
- The
Wrappermacro is designed for single-field structs, implementing additional methods supporting interactions with the inner value