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.
- Static
StrUnion - A trait for representing a
&'static str
union Don’t implement this trait manually, use theunion
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>