Trait Add

Source
pub unsafe trait Add<Rhs = Self>: Add<Rhs> { }
Expand description

This trait is empty declaration of ::core::ops::Add to be used with newer_type::implement.

§Example

#[implement(for<Rhs> newer_type_std::ops::Add<Rhs>)]
struct MyStruct {
    slot: usize
}

§Safety

should be implemented by newer_type::implement

Implementors§