eldek-tad 0.9.1

A project for learning Abstract Data Types (ADTs) in Rust. Heavily inspired by Java's implementation.
Documentation
  • Coverage
  • 6.63%
    12 out of 181 items documented9 out of 108 items with examples
  • Size
  • Source code size: 121.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.82 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 24s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • eldek0/tad-rust
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • eldek0

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