From 860b73f1644ecd6548ae403ec483625fb7b625ea Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 23 Nov 2019 19:27:21 +0100 Subject: entities rework, allow "inline" documentation, merge config with cli --- src/pandoc/types.rs | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/pandoc/types.rs (limited to 'src/pandoc/types.rs') diff --git a/src/pandoc/types.rs b/src/pandoc/types.rs deleted file mode 100644 index dc5be64..0000000 --- a/src/pandoc/types.rs +++ /dev/null @@ -1,39 +0,0 @@ -use crate::pandoc::{Block, Inline}; - -#[derive(Debug, Clone)] -pub(super) struct Class { - inners: Vec, -} - -#[derive(Debug, Clone)] -struct Inner { - kind: InnerKind, - name: String, - //refid: String -} - -#[derive(Debug, Clone)] -enum InnerKind { - Class, - Enum, -} - -impl std::fmt::Display for InnerKind { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - InnerKind::Class => write!(f, "class"), - InnerKind::Enum => write!(f, "enum"), - } - } -} - -impl From for (Vec, Vec>) { - fn from(inner: Inner) -> (Vec, Vec>) { - ( - vec![Inline::Str(inner.name)], - vec![vec![Block::Plain(vec![Inline::Str( - inner.kind.to_string(), - )])]], - ) - } -} -- cgit v1.2.3