Crates.io | edtui-jagged |
lib.rs | edtui-jagged |
version | 0.1.12 |
source | src |
created_at | 2023-12-25 15:29:23.516552 |
updated_at | 2024-10-26 09:24:43.764788 |
description | A jagged array data structure for the edtui editor |
homepage | |
repository | https://github.com/preiter93/edtui-jagged |
max_upload_size | |
id | 1080312 |
size | 67,850 |
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.
T
: The data type of elements stored within the jagged array.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.
For more details, refer to the documentation of individual types and methods.
License: MIT