https://github.com/craftspider/forest
Can't see the forest for the trees
https://github.com/craftspider/forest
Last synced: 2 months ago
JSON representation
Can't see the forest for the trees
- Host: GitHub
- URL: https://github.com/craftspider/forest
- Owner: CraftSpider
- Created: 2022-12-18T18:35:17.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T20:27:01.000Z (over 3 years ago)
- Last Synced: 2025-03-10T20:43:32.418Z (over 1 year ago)
- Language: Rust
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Forest
A holding place for tree implementations
## Tree Implementations
### simple_tree::Tree
Pros:
- Is easily `Send`/`Sync`
- No extra allocation or synchronization costs
Cons:
- Can only borrow nodes mutably *or* immutably
- Can only traverse the tree from certain borrows
### object_tree::Tree
Pros:
- Can have many nodes borrowed with different mutability at once
- Can work primarily through borrowed nodes
Cons:
- Not `Send`/`Sync` without the `atomic` feature
- Have to pay extra allocation and synchronization costs