# seg_lib
[](https://crates.io/crates/seg_lib)
[](https://docs.rs/seg_lib)
[](https://github.com/qdot3/seg_lib/actions)
[](https://deps.rs/repo/github/qdot3/seg_lib/)
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`] | ✅ | ✅ | |
| [`DynamicLazySegmentTree`] | ✅ | ✅ | large array |
| [`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.
## Misc
実装の詳細を解説した[日本語の本](https://qdot3.github.io/seg_lib)を執筆しています。