Trait Increment
Source pub trait Increment {
type Output;
// Required method
unsafe fn inc(&self) -> Self::Output;
}
Expand description
Represents C++’s prefix increment (++a
).
Increment self
.
§Safety
The caller must make sure self
contains a valid pointer. This function
may invoke arbitrary foreign code, so no safety guarantees can be made.