Trait MyMod

Source
pub trait MyMod:
    Add
    + Sub
    + Div
    + Mul
    + Sized {
    // Required method
    fn mymod(&self, b: Self) -> Self;
}

Required Methods§

Source

fn mymod(&self, b: Self) -> 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 MyMod for i32

Source§

fn mymod(&self, b: Self) -> Self

Implementors§