Expand description
Clone Behavior
Bound the semantic behavior and time complexity of cloning a value.
A future version of this crate might provide a derive macro if there is interest.
§License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Enums§
- Fast
- Indicates that a cloning operation is constant-time.
- Maybe
Slow - Places no constraints on the speed of a cloning operation.
Traits§
- Deep
Clone - Get deep clones of a value, which do not share any semantically-important mutable state.
- Fast
Speed - Trait for indicating the overhead and/or time complexity of a cloning operation.
- Mirrored
Clone - Get clones that share all semantically-important mutable state.
- Speed
- Trait for indicating the overhead and/or time complexity of a cloning operation.