#![expect(clippy::todo, reason = "skeleton: #6833")]
use alloc::boxed::Box;
use core::fmt;
pub mod capture;
pub mod runtime;
pub mod value;
pub use runtime::{DumpPage, DumpRuntime};
pub use value::DumpValue;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum DumpMode {
Full,
Display,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct DumpError {
pub line: usize,
pub message: Box<str>,
}
impl fmt::Display for DumpError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let _ = f;
todo!()
}
}
impl core::error::Error for DumpError {}
pub trait Dump: Sized {
fn print<W: fmt::Write>(&self, w: &mut W, mode: DumpMode) -> fmt::Result;
fn parse(input: &str) -> Result<Self, DumpError>;
}