TrySub

Trait TrySub 

Source
pub trait TrySub: Sized {
    // Required method
    fn try_sub(self, rhs: Self) -> Result<Self>;
}

Required Methods§

Source

fn try_sub(self, rhs: Self) -> Result<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.

Implementations on Foreign Types§

Source§

impl TrySub for i32

Source§

fn try_sub(self, rhs: Self) -> Result<Self>

Source§

impl TrySub for i64

Source§

fn try_sub(self, rhs: Self) -> Result<Self>

Source§

impl TrySub for i128

Source§

fn try_sub(self, rhs: Self) -> Result<Self>

Source§

impl TrySub for u32

Source§

fn try_sub(self, rhs: Self) -> Result<Self>

Source§

impl TrySub for u64

Source§

fn try_sub(self, rhs: Self) -> Result<Self>

Source§

impl TrySub for u128

Source§

fn try_sub(self, rhs: Self) -> Result<Self>

Implementors§