[][src]Trait cpp_core::ops::Decrement

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

Represents C++'s prefix decrement (--a).

Associated Types

type Output

Output type.

Loading content...

Required methods

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

Decrement 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...