diff options
Diffstat (limited to 'src/doc.rs')
| -rw-r--r-- | src/doc.rs | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -608,7 +608,7 @@ cast_to_value! { } /// Meta information that isn't visible or renderable. -#[derive(Debug, Clone, PartialEq, Hash)] +#[derive(Clone, PartialEq, Hash)] pub enum Meta { /// An internal or external link to a destination. Link(Destination), @@ -623,6 +623,17 @@ pub enum Meta { Hide, } +impl Debug for Meta { + fn fmt(&self, f: &mut Formatter) -> fmt::Result { + match self { + Self::Link(dest) => write!(f, "Link({dest:?})"), + Self::Elem(content) => write!(f, "Elem({:?})", content.func()), + Self::PageNumbering(value) => write!(f, "PageNumbering({value:?})"), + Self::Hide => f.pad("Hide"), + } + } +} + cast_from_value! { Meta: "meta", } |
