Scalar

Trait Scalar 

Source
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.

Implementations on Foreign Types§

Source§

impl Scalar for u8

Source§

impl Scalar for u16

Source§

impl Scalar for u32

Source§

impl Scalar for u64

Source§

impl Scalar for ()

Source§

impl Scalar for usize

Source§

impl Scalar for NonZeroU8

Source§

impl Scalar for NonZeroU16

Source§

impl Scalar for NonZeroU32

Source§

impl Scalar for NonZeroU64

Source§

impl Scalar for NonZeroUsize

Implementors§