WrappingSemantics

Trait WrappingSemantics 

Source
pub trait WrappingSemantics:
    Copy
    + Clone
    + Debug
    + WrappingAdd
    + WrappingMul
    + WrappingSub
    + WrappingNeg
    + Zero
    + One
    + Eq
    + Sync
    + Send
    + ToBytes { }
Expand description

Declares the given type as performing wrapping arithmetic (rather than e.g. panicking on overflow).

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 WrappingSemantics for u8

Source§

impl WrappingSemantics for u16

Source§

impl WrappingSemantics for u32

Source§

impl WrappingSemantics for u64

Source§

impl WrappingSemantics for u128

Implementors§