An open API service indexing awesome lists of open source software.

https://github.com/ffflorian/double_linked_list

A Rust implementation of a double-linked list
https://github.com/ffflorian/double_linked_list

Last synced: about 1 year ago
JSON representation

A Rust implementation of a double-linked list

Awesome Lists containing this project

README

          

## double_linked_list

A linked list in which every element knows about its predecessor and its successor.
```
______ ______ ______
| | | | | | | | | | | |
| | | <---> | | <---> | | |
|_|__|_| |_|__|_| |_|__|_|
prev n next
```

### Usage

```rust
extern crate double_linked_list;

use double_linked_list::LinkedList;
use double_linked_list::ListElement;

let list = LinkedList::new();
let element = ListElement::new("hello");
```

### Testing

Use `cargo` for testing:
```bash
$ cargo test
```