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? .
The text was updated successfully, but these errors were encountered:
Implement the
Clone
andDebug
traits forSegtree
.Since
M::S
has theClone
constraint, theClone
trait can be derived.For the
Debug
trait, I propose addinguse std::fmt::{Debug, Error, Formatter, Write};
and defining thefmt
function based on the existing implementation inLazySegtree
, excluding the output forself.lz
.In this approach, we should take into account that the
Debug
implementation forLazySegtree
includes a comment saying// TODO is it useful?
.The text was updated successfully, but these errors were encountered: