Skip to content

eldek0/tad-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tad-rust

A project for learning Abstract Data Types (ADTs) in Rust. Heavily inspired by Java's implementations.

Crates.io Docs.rs

Structures

  • Linked List
  • Stack
  • Queue
  • Heap
  • Binary Tree
  • HashMap
  • Graph
  • Binary Search Tree (BST)
  • Prefix Tree

Usage

[dependencies]
eldek-tad = "0.9.1"

Example

use eldek_tad::stack::stack::Stack;
use eldek_tad::stack::traits::stack_traits::StackTrait;

fn main() {
    let mut stack = Stack::new();
    stack.push(1);
    stack.push(2);
    stack.push(3);

    while let Ok(val) = stack.pop() {
        println!("{}", val); // 3, 2, 1
    }
}

Documentation

https://docs.rs/eldek-tad

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages