#nested #vec #jagged #edtui

edtui-jagged

A jagged array data structure for the edtui editor

12 releases

0.1.12 Oct 26, 2024
0.1.11 Oct 26, 2024
0.1.5 Sep 28, 2024
0.1.4 Jun 29, 2024
0.1.0 Dec 25, 2023

#289 in Data structures

Download history 22/week @ 2024-09-18 223/week @ 2024-09-25 335/week @ 2024-10-02 672/week @ 2024-10-09 75/week @ 2024-10-16 261/week @ 2024-10-23 61/week @ 2024-10-30 34/week @ 2024-11-06 7/week @ 2024-11-13 30/week @ 2024-11-20 9/week @ 2024-11-27 26/week @ 2024-12-04 49/week @ 2024-12-11 18/week @ 2024-12-18 16/week @ 2024-12-25 25/week @ 2025-01-01

122 downloads per month
Used in 4 crates (2 directly)

MIT license

65KB
1.5K SLoC

edtui-jagged

edtui_jagged

edtui_jagged is a Rust library providing a generic container for working with an object, where each element is organized into lines (rows).

The central component of this library is the Jagged struct, which wraps a vector of vectors. The outer vector represents rows, and the inner vectors represent the elements within each row.

Generic Parameters

  • T: The data type of elements stored within the jagged array.

Examples

use edtui_jagged::Jagged;

let data = vec![
    vec![1, 2, 3],
    vec![4, 5, 6],
    vec![7, 8, 9],
    vec![0],
];

let lines = Jagged::new(data);

The Jagged struct is equipped with various methods for working with the underlying data, including iterators for efficient traversal and searching.

Features

  • Generic container for working with jagged arrays.
  • Convenient creation and manipulation of rows and elements.
  • Iteration and searching utilities for enhanced data processing.

For more details, refer to the documentation of individual types and methods.

License: MIT

No runtime deps