Debian Codegraph @

examples/overwrite.rs

raw symbols SCIP
1 use ringbufrust-analyzer cargo ringbuf 0.3.3 crate/::{HeapRbrust-analyzer cargo ringbuf 0.3.3 alias/HeapRb#, Rbrust-analyzer cargo ringbuf 0.3.3 ring_buffer/rb/Rb#};
2
3 fn mainrust-analyzer cargo ringbuf 0.3.3 main().() {
4 let mut rb = HeapRbrust-analyzer cargo ringbuf 0.3.3 alias/HeapRb#::<i32>::newrust-analyzer cargo ringbuf 0.3.3 ring_buffer/init/impl#[`SharedRb<T, Vec<MaybeUninit<T>>>`]new().(2);
5
6 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(rb.push_overwriterust-analyzer cargo ringbuf 0.3.3 ring_buffer/rb/Rb#push_overwrite().(0), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#);
7 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(rb.push_overwriterust-analyzer cargo ringbuf 0.3.3 ring_buffer/rb/Rb#push_overwrite().(1), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#);
8 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(rb.push_overwriterust-analyzer cargo ringbuf 0.3.3 ring_buffer/rb/Rb#push_overwrite().(2), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(0));
9
10 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(rb.poprust-analyzer cargo ringbuf 0.3.3 ring_buffer/rb/Rb#pop().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(1));
11 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(rb.poprust-analyzer cargo ringbuf 0.3.3 ring_buffer/rb/Rb#pop().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(2));
12 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(rb.poprust-analyzer cargo ringbuf 0.3.3 ring_buffer/rb/Rb#pop().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#);
13 }