Skip to content

Implement Clone and Debug for Segtree #144

Open
@NotLeonian

Description

@NotLeonian

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? .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions