pub trait Fold<R: RangeBounds<usize>> {
type Output: Monoid;
// Required method
fn fold(&self, r: R) -> <Self::Output as Magma>::Set;
}
Expand description
区間和を求める。
pub trait Fold<R: RangeBounds<usize>> {
type Output: Monoid;
// Required method
fn fold(&self, r: R) -> <Self::Output as Magma>::Set;
}
区間和を求める。