3MT46E3X5M3PTXCUZ6IJJAIM6WH4DWAOMPCGEUUSKMY7TEV6NLCQC pub enum MatchError<ParseError> {ParseError(ParseError),
#[derive(Debug, Error, Diagnostic)]pub enum CheckFailure {#[error("failed to read document: {0}")]ParseError(#[from] IoOrParseError),#[error(transparent)]ValidationFailure(#[from] check::CheckFailure),
fn check_matches<D: ParseToDocumentAst>(document: D) -> Result<(), MatchError<D::Error>> {todo!()
fn check_matches<D: ParseToDocumentAst>(&self, document: D) -> Result<(), CheckFailure> {let document = document.parse()?;let _ = check::check(document, self)?;Ok(())
use kdl_schema::Schema;use miette::Diagnostic;use thiserror::Error;use super::DocumentAst;#[derive(Debug, Error, Diagnostic)]pub enum CheckFailure {}pub(crate) fn check(document: DocumentAst, schema: &Schema) -> Result<(), CheckFailure> {todo!()}