# seg_lib
[](https://crates.io/crates/seg_lib)
[](https://docs.rs/seg_lib)
[](https://github.com/qdot3/seg_lib/actions)
A collection of segment tree variants.
## Usage
Run this command in your project directory:
```text
cargo add seg_lib
```
## Guide
| [`SegmentTree`] | ✅ | ❌ | |
| [`DynamicSegmentTree`] | ✅ | ❌ | large array |
| [`DualSegmentTree`] | ❌ | ✅ | |
| [`LazySegmentTree`] | ✅ | ✅ | |
| [`AssignSegmentTree`] | ✅ | ✅ | specialized for range assign update |
## License
Licensed under either of
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
* [MIT license](http://opensource.org/licenses/MIT)
at your option.