#vec #jagged #nested #edtui

edtui-jagged

A jagged array data structure for the edtui editor

5 releases

new 0.1.4 Jun 29, 2024
0.1.3 Mar 1, 2024
0.1.2 Feb 18, 2024
0.1.1 Jan 20, 2024
0.1.0 Dec 25, 2023

#329 in Data structures

Download history 35/week @ 2024-03-11 40/week @ 2024-04-01 6/week @ 2024-04-08 8/week @ 2024-05-06 14/week @ 2024-05-20 10/week @ 2024-06-03 6/week @ 2024-06-10 4/week @ 2024-06-17 172/week @ 2024-06-24

192 downloads per month
Used in 3 crates (2 directly)

MIT license

43KB
909 lines

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