Expand description
Please see the ownable crate for a more comprehensive overview.
This crate contains the core types and traits used by ownable available without all of the
macro related dependencies that get used for the derive macros. If you don’t rely on the derive
macros then you may benefit from pulling in fewer dependencies by relying directly on
ownable-core.
Structs§
- AsClone
- Transparent wrapper for
Cloneable types to support all traits (by cloning). - AsCopy
- Transparent wrapper for
Copyable types to support all traits (by copying).
Traits§
- Into
Owned - Copy the structure and clone the original values if it’s not owned.
- ToBorrowed
- Copy the structure and reference the original values.
- ToOwned
- Copy the structure and clone the original values.