pub struct VecActSegtree<A>where
    A: MonoidAction,
    <A::Operator as Magma>::Set: Clone,
    <A::Operand as Magma>::Set: Clone,{ /* private fields */ }

Implementations§

source§

impl<A> VecActSegtree<A>where A: MonoidAction, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone,

source

pub fn new(len: usize) -> Selfwhere A: Default,

source

pub fn is_empty(&self) -> bool

source

pub fn len(&self) -> usize

Trait Implementations§

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

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

fn act(&mut self, b: B, op: <A::Operator as Magma>::Set)

source§

impl<A> Clone for VecActSegtree<A>where A: MonoidAction + Clone, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone, A::Operand: Clone, A::Operator: Clone,

source§

fn clone(&self) -> VecActSegtree<A>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<A> Debug for VecActSegtree<A>where A: MonoidAction, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<A> Default for VecActSegtree<A>where A: MonoidAction + Default, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone, A::Operand: Default, A::Operator: Default,

source§

fn default() -> VecActSegtree<A>

Returns the “default value” for a type. Read more
source§

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

§

type Output = <A as MonoidAction>::Operand

source§

fn fold(&self, b: B) -> <Self::Output as Magma>::Set

r で指定される区間の和を返す。
source§

impl<A> FoldBisect for VecActSegtree<A>where A: MonoidAction, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone,

source§

fn fold_bisect<F>( &self, l: usize, pred: F ) -> (usize, <A::Operand as Magma>::Set)where F: Fn(&<A::Operand as Magma>::Set) -> bool,

添字 l と述語 pred を引数に取り、次の条件を満たす r を返す。 ただし、区間長を n とする。 Read more
source§

impl<A> FoldBisectRev for VecActSegtree<A>where A: MonoidAction, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone,

source§

fn fold_bisect_rev<F>( &self, r: usize, pred: F ) -> (usize, <A::Operand as Magma>::Set)where F: Fn(&<A::Operand as Magma>::Set) -> bool,

添字 r と述語 pred を引数に取り、次の条件を満たす l を返す。 Read more
source§

impl<A> From<(Vec<<<A as MonoidAction>::Operand as Magma>::Set, Global>, A)> for VecActSegtree<A>where A: MonoidAction, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone,

source§

fn from((v, action): (Vec<<A::Operand as Magma>::Set>, A)) -> Self

Converts to this type from the input type.
source§

impl<A> From<Vec<<<A as MonoidAction>::Operand as Magma>::Set, Global>> for VecActSegtree<A>where A: MonoidAction + Default, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone,

source§

fn from(v: Vec<<A::Operand as Magma>::Set>) -> Self

Converts to this type from the input type.
source§

impl<A> From<VecActSegtree<A>> for Vec<<A::Operand as Magma>::Set>where A: MonoidAction, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone,

source§

fn from(v: VecActSegtree<A>) -> Self

Converts to this type from the input type.
source§

impl<'a, A> GetMut<'a> for VecActSegtree<A>where A: MonoidAction + 'a, <A::Operator as Magma>::Set: Clone, <A::Operand as Magma>::Set: Clone,

§

type Output = GetMutIndex<'a, A>

source§

fn get_mut(&'a mut self, index: usize) -> Option<GetMutIndex<'a, A>>

Auto Trait Implementations§

§

impl<A> !RefUnwindSafe for VecActSegtree<A>

§

impl<A> Send for VecActSegtree<A>where A: Send, <<A as MonoidAction>::Operand as Magma>::Set: Send, <<A as MonoidAction>::Operator as Magma>::Set: Send,

§

impl<A> !Sync for VecActSegtree<A>

§

impl<A> Unpin for VecActSegtree<A>where A: Unpin, <<A as MonoidAction>::Operand as Magma>::Set: Unpin, <<A as MonoidAction>::Operator as Magma>::Set: Unpin,

§

impl<A> UnwindSafe for VecActSegtree<A>where A: UnwindSafe, <<A as MonoidAction>::Operand as Magma>::Set: UnwindSafe, <<A as MonoidAction>::Operator as Magma>::Set: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V