trait UAddSub: DInt + Int {
// Provided methods
fn uadd(self, other: Self) -> Self { ... }
fn uadd_one(self) -> Self { ... }
fn usub(self, other: Self) -> Self { ... }
}
Provided Methods§
fn uadd(self, other: Self) -> Self
fn uadd_one(self) -> Self
fn usub(self, other: 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.