cargo_rdme/transform/
mod.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 */
5
6use crate::Doc;
7
8mod intralinks;
9mod rust_markdown_tag;
10mod rust_remove_comments;
11mod utils;
12
13pub use intralinks::{
14    DocTransformIntralinks, IntralinkError, IntralinksConfig, IntralinksDocsRsConfig,
15};
16pub use rust_markdown_tag::DocTransformRustMarkdownTag;
17pub use rust_remove_comments::DocTransformRustRemoveComments;
18
19pub trait DocTransform {
20    type E;
21
22    fn transform(&self, doc: &Doc) -> Result<Doc, Self::E>;
23}