Struct algs4::stacks_and_queues::fixed_capacity_stack::FixedCapacityStackOfStrings [] [src]

pub struct FixedCapacityStackOfStrings {
    // some fields omitted
}

Methods

impl FixedCapacityStackOfStrings
[src]

Trait Implementations

impl StackOfStrings for FixedCapacityStackOfStrings
[src]

fn new() -> FixedCapacityStackOfStrings

create an empty stack

fn is_empty(&self) -> bool

is the stack empty?

fn push(&mut self, item: String)

insert a new string onto stack

fn pop(&mut self) -> String

remove and return the string most recently added

fn size(&self) -> usize

number of strings on the stack