Trait Times

Source
pub trait Times:
    BinaryOp
    + Identity
    + Clone {
    // Provided method
    fn times(self, n: u64) -> Self { ... }
}
Expand description

値に二項演算を複数回適用する。

Provided Methods§

Source

fn times(self, n: u64) -> Self

$\underbrace{a \circ a \circ \dots \circ a \circ a}_{n}$を計算する。

Time complexity $O(\log n)$

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.

Implementors§