Back to explore

Rust enumをJev Choiceのオプションとして使用

この投稿は、system2でRustのenumをJev Choiceのオプションとして使用する方法を示しています。docコメントがJevに選択肢を説明し、回答はバリアントの一つとして返されます。すべての質問は1つのリクエストで送信され、型付きの回答がプログラムによる判断に利用できます。

With system2, a Rust enum can be the options of a Jev Choice: its doc comments describe them to Jev, and the answer is one of your variants. All three questions go out in one request, and the answers come back typed, ready to decide programmatically.

Rust enumをJev Choiceのオプションとして使用 1
· 0 likesOpen on X