MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / new

Method new

contents/stacks_and_queues/code/rust/Stack.rs:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5impl<T> Stack<T> {
6 fn new() -> Self {
7 Stack {
8 list: Vec::new(),
9 }
10 }
11
12 // Note that this returns a reference to the value
13 // This is in contrast to pop which gives ownership of the value

Callers 2

generateMethod · 0.45
stable_marriage.rbFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected