Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

marker type

An empty type used only as a label inside another type, like Km in Distance.

A unit struct never created at run time, used as a type argument (often with PhantomData) to select impls or keep values apart.

Examples

  • With struct Parcel; and struct Courier; as markers, passing an Id<Courier> where an Id<Parcel> is expected fails with E0308.

Read the full section →