Skip to main content

Crate strict_typing

Crate strict_typing 

Source
Expand description

A macro to enforce strict typing on the fields in Rust.

Please refer to the documentation of the macro for more details: strict_types.

Attribute Macrosยง

strict_types
A macro to enforce strict typing on struct and enum fields. It checks if any field uses a primitive type and generates a compile-time error if it does. The idea is to encourage the use of newtype wrappers for primitive types to ensure type safety and clarity in the codebase.