• B
    Create Render structs from views · 14144e2a
    Benjamin Sago 提交于
    Instead of having render methods on the types that are now called Options, create new Render structs (one per view) and execute them. This means that it’s easier to extract methods from them — some of them are pretty long.
    
    Also, remove the GridDetails struct, which got consumed by Mode (mostly)
    
    By introducing another indirection between the structs that command-line options get parsed into and the structs that get rendered, it should be easier to refactor that horrible function in view.rs.
    14144e2a
view.rs 12.5 KB