1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! First-class, PyO3-independent error type for the OxydeMark Rust surface.
//!
//! Historically the public Rust API leaked `PyResult`; OMEP-0008 tracked a
//! first-class Rust error type as a 1.0 follow-up. That follow-up is pulled
//! forward here so the Rust surface is fully independent of PyO3: fallible
//! operations return [`Result<T, OxydeError>`], and the optional Python
//! binding layer converts `OxydeError` into a `PyErr`.
use fmt;
/// Errors that can occur while processing Markdown with OxydeMark.
///
/// This type is intentionally small and opaque: it does not leak the
/// underlying `rushdown` renderer error type, keeping the public surface
/// stable across dependency upgrades. It is `#[non_exhaustive]` so new
/// variants can be added without a breaking change.