chiark / gitweb /
multigrab/fastsplit: Plumb ShowUnocculted and &PieceTrait
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 01:21:05 +0000 (02:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 14:15:30 +0000 (15:15 +0100)
commitb133256e04f21ef6aead4feaa09977ffdfcef73c
treeab4c83bc0c0bd39a42c5d66016e291c48815d9d8
parenta0aacfde67882c6e77cdbc2da139ec004145ba25
multigrab/fastsplit: Plumb ShowUnocculted and &PieceTrait

The implementation doesn't really want PieceRenderingInstructions,
just permission to get at trait objects.

The currency fastsplit implementation callback is going to want to
look at its Banknote so that it can make a nice log message.  I think
fastsplit piece impls are entitled access to their concret piece type.
So downcast it, and pass it down the layers.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/api.rs
src/currency.rs
src/fastsplit.rs
src/gamestate.rs