Rust Types

Rust type system design — generics, traits, dispatch, newtypes, typestate, PhantomData. Use when designing type-safe APIs, encountering E0277/E0308/E0599/E0038, choosing between static and dynamic dispatch, or implementing sealed traits and parse-don't-validate patterns. Also use when working with generic bounds, trait objects, newtype wrappers, or making invalid states unrepresentable through the type system.

dawidpereira 538d9b8 5 files · 31.1 KB Updated

File contents

dawidpereira/rust-skills/tree/main/skills/rust-types commit 538d9b8b08

Frequently asked questions

npx skillmds@latest add dawidpereira/rust-types