[][src]Struct contest_algorithms::arq_tree::AssignSum

pub struct AssignSum;

Range Sum Query, a slightly trickier classic application of ARQ. modify(l, r, &f) sets all entries a[l..=r] to f. query(l, r) sums all the entries a[l..=r].

Panics

Associated functions will panic on overflow.

Trait Implementations

impl ArqSpec for AssignSum[src]

type F = i64

Type of data representing an endomorphism.

type M = (i64, i64)

Type of monoid elements.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]