viz-rs / path-tree

path-tree is a lightweight high performance HTTP request router for Rust
Apache License 2.0
119 stars 18 forks source link

implement Clone trait for PathTree #33

Closed kotlin2018 closed 1 year ago

fundon commented 1 year ago

@kotlin2018 Thank you.

I'm interested in what scenarios require clone the entire tree?

kotlin2018 commented 1 year ago

I'm interested in what scenarios require clone the entire tree? For example, I have defined a routing tree. There is a method in this routing tree that needs the tree field to implement Clone trait

image

fundon commented 1 year ago

rebase codes, .idea .vscode .fleet should not be commited and fmt it.

fundon commented 1 year ago

@kotlin2018 Please rebase it? Thank you.

fundon commented 1 year ago

You can reopen it if you want to continue.