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

Method new

352-data-stream-as-disjoint-intervals.rs:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6impl SummaryRanges {
7
8 fn new() -> Self {
9 SummaryRanges {
10 set: std::collections::BTreeSet::new(),
11 }
12 }
13
14 fn add_num(&mut self, val: i32) {
15 let mut new = (val, val);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected