[][src]Trait cpp_core::ops::Increment

pub trait Increment {
    type Output;
    unsafe fn inc(&self) -> Self::Output;
}

Represents C++'s prefix increment (++a).

Associated Types

type Output

Output type.

Loading content...

Required methods

unsafe fn inc(&self) -> Self::Output

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.

Loading content...

Implementors

Loading content...