pub trait Scalar:
Seal
+ Copy
+ Ord
+ Hash { }Expand description
Simple types that can be produced from ScalarAllocator, these types
are known to have stable Clone and Eq implementations that allow
them to be used in the implementation of Token
This trait is used by the scalar_allocator
macro’s implementation to verify safety, and provide pieces of implementation.
All contents of Scalar that are hidden from documentation, have
NO STABILITY GUARANTEES WHATSOEVER
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.