Trait nekolib::traits::act::Act

source ·
pub trait Act<R: RangeBounds<usize>> {
    type Action: MonoidAction;

    // Required method
    fn act(
        &mut self,
        r: R,
        x: <<Self::Action as MonoidAction>::Operator as Magma>::Set
    );
}
Expand description

区間作用を行う。

Required Associated Types§

source

type Action: MonoidAction

r で指定される区間に作用を行う。

Required Methods§

source

fn act( &mut self, r: R, x: <<Self::Action as MonoidAction>::Operator as Magma>::Set )

Implementors§

source§

impl<A, B> Act<B> for VecActSegtree<A>where A: MonoidAction, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone, B: RangeBounds<usize>,

§

type Action = A