use std::fmt::Debug; /// A combination of an informative parse error, and what has been successfully parsed so far #[derive(Debug)] pub struct ParseError { /// An informative cause for this parse error pub cause: nu_errors::ParseError, /// What has been successfully parsed, if anything pub partial: Option, } pub type ParseResult = Result>; impl From> for nu_errors::ShellError { fn from(e: ParseError) -> Self { e.cause.into() } }