Commit e097575
committed
add naive default impl for GuestMemory::num_regions
Similar to find_region(), we can provide an inefficient default impl to
make downstream impls of the trait less verbose in scenarios that really
do not care (e.g. mock impls for tests).
Signed-off-by: Patrick Roy <roypat@amazon.co.uk>1 parent 15606ea commit e097575
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
0 commit comments