kosei28/maru/error does not have a README file

Invalid

pub(all) suberror Invalid {
Invalid(Path, String)
} derive(Eq)

A validation failure, carrying the JSON path where it occurred.
impl Show for Invalid

Invalid::to_string

fn Invalid::to_string(self : Invalid) -> String

Path

pub(all) enum Path {
Root
Field(Path, String)
Index(Path, Int)
} derive(Eq)

A location inside a JSON value.

Field names are joined with ., and array indices are written as [n]. The root path is empty.
impl Show for Path

Path::to_string

fn Path::to_string(self : Path) -> String

err

fn[T] err(path : Path, message : String) -> T raise Invalid

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io