MCPcopy Create free account
hub / github.com/alexfertel/rust-algorithms / is_empty

Method is_empty

src/data_structures/stack.rs:24–26  ·  view source on GitHub ↗

returns true if stack is empty else false

(&self)

Source from the content-addressed store, hash-verified

22
23 // returns true if stack is empty else false
24 pub fn is_empty(&self) -> bool {
25 self.vec.is_empty()
26 }
27
28 // returns a Some<&T> if stack is non-empty else None
29 // &T is an immutable reference to an element of type T

Callers 15

random_treeFunction · 0.45
mainFunction · 0.45
minimaxFunction · 0.45
bfsMethod · 0.45
convex_hull_grahamFunction · 0.45
pigeonhole_sortFunction · 0.45
is_sortedFunction · 0.45
strand_sortFunction · 0.45
bucket_sortFunction · 0.45
mergeFunction · 0.45
bingo_sortFunction · 0.45
rabin_karpFunction · 0.45

Calls

no outgoing calls

Tested by 1

random_treeFunction · 0.36