Pass in the previous row during building

AfoHT
Jan 21, 2024, 5:47 PM
DUC7IKTFCKOSCRN3IGPXYFOP3UCRVIXSJSNXCAXOVSFHFNRN7EPAC

Dependencies

  • [2] 352OAU47 Clippy: Needless reference
  • [3] 2USDM5CH WIP for more generic
  • [4] MLUGR2LL Add default impl and some basic plank logic
  • [5] VSG6UWDY Can now build floors
  • [6] Y4AQJ5RD Other defaults
  • [7] 6ODVKCN4 Fix printouts of relative lengths
  • [8] SMYRM2CF Use the MaterialStorage
  • [9] ES2PMPT4 Using structures instead
  • [10] 5TH3AA46 10 mm extra space
  • [11] OK5CKW6E Rework everything, use references
  • [12] USO5PZWO Start with the print function, separate mutable and immutable functions
  • [13] JPTYS433 Cleanup, clippy

Change contents

  • replacement in src/bin/main.rs at line 74
    [3.674][2.63:93]()
    match build_row(ms) {
    [3.674]
    [3.1382]
    let previous_row = floor.rows().last();
    match build_row(ms, previous_row) {
  • replacement in src/bin/main.rs at line 89
    [3.557][3.886:942]()
    fn build_row(ms: &mut MaterialStorage) -> Option<Row> {
    [3.557]
    [3.1356]
    fn build_row(ms: &mut MaterialStorage, adjacent_row: Option<&Row>) -> Option<Row> {