Crate utility_macros

Source
Expand description

A Rust library to emulate Utility Types in TypeScript

Macros§

union
Create a string union inside me.

Enums§

Error
An error type for utility-macros

Traits§

HasPartial
A trait for types that have a partial representation.
HasReadonly
A trait for types that have a readonly version.
HasRecord
HasRequired
A trait for types that have a required representation.
Partial
A trait for partial representations of types.
Readonly
A trait for readonly versions of types.
Record
Required
A trait for required representations of types.
StaticStrUnion
A trait for representing a &'static str union Don’t implement this trait manually, use the union macro instead
Union
A trait for representing a union Don’t implement this trait manually, use the union macro instead

Type Aliases§

Result
A type alias for std::result::Result<T, Error>

Derive Macros§

Partial
Readonly
Derives the Readonly trait for a struct.
Record
Derives the Record trait for a struct.
Required
Derives the Required trait for a struct.