This version of the module is deprecated: Superseded by moonbitlang/core/debug, which is part of the standard library: use its Debug trait, derive(Debug), debug_inspect and render instead. This module gets no further updates.

    moonbit-community/debug/diff does not have a README file

    ReprDelta

    pub struct ReprDelta(DebugDelta)

    A diff result between two Repr values.

    Note: this is a thin wrapper around the internal DebugDelta so it can be exposed as part of the public API.

    ReprDelta::delta

    fn ReprDelta::delta(self : ReprDelta) -> DebugDelta

    Extract the underlying DebugDelta.

    ReprDelta::from_delta

    fn ReprDelta::from_delta(delta : DebugDelta) -> ReprDelta

    Construct a ReprDelta from a raw DebugDelta.

    diff_repr

    fn diff_repr(x :
    Repr
    , y :
    Repr
    , max_relative_error? : Double) -> ReprDelta

    Diff two Repr values.

    Optional parameters:
    • max_relative_error?: relative-error tolerance for DoubleLit.
      • When None, the default is 1e-12.
      • Larger tolerances make floats less likely to be reported as different.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io