You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the Clone and Debug traits for Segtree.
Since M::S has the Clone constraint, the Clone trait can be derived.
For the Debug trait, I propose adding use std::fmt::{Debug, Error, Formatter, Write}; and defining the fmt function based on the existing implementation in LazySegtree, excluding the output for self.lz.
In this approach, we should take into account that the Debug implementation for LazySegtree includes a comment saying // TODO is it useful? .