Skip to content

Commit 47b3ae8

Browse files
authored
add Result in the specification (#146)
1 parent d5ca266 commit 47b3ae8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,19 @@ <h4 class="display-4">Specification</h4>
454454
}
455455
</td>
456456
</tr>
457+
<tr>
458+
<td>Result</td>
459+
<td>result_type: "Result&lt;" ident '&gt;'</td>
460+
<td>
461+
if x.is_ok() { <br />
462+
&nbsp; repr(1 as u8) <br />
463+
&nbsp; repr(x.unwrap() as ident) <br />
464+
} else { <br />
465+
&nbsp; repr(0 as u8) <br />
466+
&nbsp; repr(x.unwrap_err() as ident) <br />
467+
}
468+
</td>
469+
</tr>
457470
<tr>
458471
<td>String</td>
459472
<td>string_type: "String"</td>

0 commit comments

Comments
 (0)