Skip to main content

Crate struct_error_macros

Crate struct_error_macros 

Source
Expand description

Procedural macro implementations for the struct_error crate.

§⚠️ WARNING: UNAUDITED CODE

This crate was AI-generated and has not undergone human review. It likely contains bugs and should NOT be used in production. The API is subject to change after audit.

Macros§

__throws_impl
Internal function-like proc macro called by __throws_cps at the end of the token forwarding chain.
match_error
Blind, type-driven pattern matching on errors.

Attribute Macros§

__struct_error_members
Internal attribute macro that encodes the member list on structs generated by #[united_error].
__throws_cps
Internal attribute macro used as the CPS callback for macro_magic::forward_tokens!.
error
Defines an atomic error struct, automatically deriving Debug, Display, and Error.
throws
Replaces the function’s return type with an implicit error union and rewrites control flow.
united_error
Defines a compile-time alias for a set of errors (a united error).