Trait Overflow

Source
pub trait Overflow: Num + PartialOrd {
    // Required methods
    fn overflow() -> Self;
    fn neg_overflow() -> Self;
}

Required Methods§

Source

fn overflow() -> Self

Source

fn neg_overflow() -> Self

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.

Implementors§

Source§

impl<T: Infinite> Overflow for T