Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9bc440c
braindump
MusicalNinjaDad Apr 14, 2026
927ec9b
intro
MusicalNinjaDad Apr 14, 2026
a901e4d
flattening example
MusicalNinjaDad Apr 14, 2026
1b2af59
ext trait example (needs unwrap)
MusicalNinjaDad Apr 14, 2026
244fe06
ext example more real world - logging
MusicalNinjaDad Apr 14, 2026
85f2088
nested example more real-world
MusicalNinjaDad Apr 14, 2026
8cc47a3
Merge branch 'main' into hacking_md
MusicalNinjaDad Apr 15, 2026
6d8e9a6
add TraitExt example
MusicalNinjaDad Apr 15, 2026
dd77304
separate examples so Try versions are also tested
MusicalNinjaDad Apr 15, 2026
1f6de4d
add todo #72
MusicalNinjaDad Apr 15, 2026
65fd49c
start explaining the derive macros
MusicalNinjaDad Apr 15, 2026
738400a
finish explaining derive macros
MusicalNinjaDad Apr 15, 2026
31fed2d
std niggles
MusicalNinjaDad Apr 15, 2026
156bd78
missing clippy lint
MusicalNinjaDad Apr 15, 2026
ce22611
first two (validly) complex cases
MusicalNinjaDad Apr 15, 2026
acc3c45
unmatchable bangs
MusicalNinjaDad Apr 15, 2026
bb63aa7
annotated feature relationships
MusicalNinjaDad Apr 15, 2026
d81c27a
proof-read
MusicalNinjaDad Apr 15, 2026
7554f91
remove excessive let if let else
MusicalNinjaDad Apr 15, 2026
da27dc3
proof-read
MusicalNinjaDad Apr 15, 2026
e148182
proof-read
MusicalNinjaDad Apr 15, 2026
b9f07da
remove l4 headings
MusicalNinjaDad Apr 15, 2026
b3a238d
add other derives to example
MusicalNinjaDad Apr 15, 2026
11186cb
header for why into Foo<!>
MusicalNinjaDad Apr 15, 2026
24a1e6f
proof read dervie section
MusicalNinjaDad Apr 15, 2026
43dc0ba
linebreaks in bullets
MusicalNinjaDad Apr 15, 2026
47e21f9
extend example code in complex cases
MusicalNinjaDad Apr 15, 2026
0b4d131
move std niggles to own, final section
MusicalNinjaDad Apr 15, 2026
040a4f4
typos
MusicalNinjaDad Apr 15, 2026
5907951
clarify intent of wip_ShortCircuitT test
MusicalNinjaDad Apr 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ proc_macro2_diagnostic = "0.3.0"
quote = "1.0.45"

[dev-dependencies]
log = "0.4.29"
trybuild = "1.0.116"

[build-dependencies]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- must have _at least one_ generic type
- the _first_ generic type must be the `Output` type (produced when not short-circuiting)
- the output variant (does not short-circuit) must be the _first_ variant and store the output type as the _only unnamed_ field
- no other variant can store the Output type (TODO #72 add a nice error message)

See the [full documentation](https://docs.rs/try_v2/latest/try_v2/) for specifics on the generated code.

Expand Down
Loading
Loading