MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / visit

Method visit

1472-design-browser-history.rs:15–19  ·  view source on GitHub ↗
(&mut self, url: String)

Source from the content-addressed store, hash-verified

13 }
14
15 fn visit(&mut self, url: String) {
16 self.his.truncate(self.idx + 1);
17 self.his.push(url.clone());
18 self.idx += 1;
19 }
20
21 fn back(&mut self, steps: i32) -> String {
22 let steps = steps as usize;

Callers 1

mainFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected