Possibly uninit binding, how do i make a net against this

⚓ Rust    📅 2026-01-19    👤 surdeus    👁️ 8      

surdeus

if ncnd.location == Position::new(0,0) {
      self.wander();

      return
}

used to get the error, however how do i create a safety net to enter the if scope if uninit?
pretty much does ncnd have a value? -> no: wander

3 posts - 2 participants

Read full topic

🏷️ Rust_feed