codesamplex

サンプル

Show that `default_value` does not convert a parser failure into the type default.

sha256:4219060d8b7de0185f0c2c229efd5d291c7174539c0221d94245dab6945914d0

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Show that `default_value` does not convert a parser failure into the type default. HOW
パッケージ
winnow 1.0.4
環境
rust
作成日
2026-08-16T15:21:23Z

よくある思い込み

Calling `Parser::default_value()` makes a parser yield the default value whenever the wrapped parser fails.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート