Skip to main content

PrefixSumValue

Trait PrefixSumValue 

Source
pub trait PrefixSumValue: Clone {
    // Required methods
    fn zero() -> Self;
    fn add_assign(&mut self, rhs: &Self);
    fn sub_assign(&mut self, rhs: &Self);
}
Expand description

Prefix sum の要素型です。

Required Methods§

Source

fn zero() -> Self

Source

fn add_assign(&mut self, rhs: &Self)

Source

fn sub_assign(&mut self, rhs: &Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PrefixSumValue for i8

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for i16

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for i32

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for i64

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for i128

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for isize

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for u8

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for u16

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for u32

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for u64

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for u128

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Source§

impl PrefixSumValue for usize

Source§

fn zero() -> Self

Source§

fn add_assign(&mut self, rhs: &Self)

Source§

fn sub_assign(&mut self, rhs: &Self)

Implementors§