Content
@
0 reply
0 recast
0 reaction
Sigrlami ⚛️❄️
@sigrlami
🦀 Rust Tip (11): The Rust type system allows you to define "phantom types" using "markers", which can be structs with just a name and can encode metadata about the specific type. They are like special tags that you attach to data. Here's an example, a Transaction struct that can be in a "New" or "Pending" state:
3 replies
2 recasts
7 reactions
gf259255
@gf259255
exceptional
0 reply
0 recast
0 reaction
aanjaon
@aanjaon
Clear and to the point, easy to understand!
0 reply
0 recast
0 reaction
Orson
@orsoner
Concise and profound, thumbs up!
0 reply
0 recast
0 reaction