CURSOR Cursor logo

A more free Rust-Iterator.

CI Crates.io Licensed Twitter

| Examples | Docs | Latest Note |

toml [dependencies] cursor = "1.1.0"


Example

```rust use cursor::*;

```

```rust fn example7() -> u8 {

let mut cursor = Cursor::new(&[1u8; 100]);
cursor += 5;
cursor -= 2;
cursor += 1;

cursor.current_deref()

}

```

```rust fn example9() {

let mut cursor = StrCursor::new("test입니다. ^^");
cursor += 5;

assert_eq!(cursor.as_preserved_str(), "test입");
assert_eq!(cursor.current(), '니');
assert_eq!(cursor.as_remaining_str(), "다. ^^");

} ```

Please check the examples folder for detailed features. There are more than you can imagine.