]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/formats/mod.rs
Pull out more types from html
[rust.git] / src / librustdoc / formats / mod.rs
index 2473f7758d2a82e456d774f03d8de83bdd600ffe..97e1af13b8a56fa6ab63a95fe51dc80e5d90601c 100644 (file)
@@ -9,6 +9,17 @@
 use crate::clean;
 use crate::clean::types::GetDefId;
 
+pub enum AssocItemRender<'a> {
+    All,
+    DerefFor { trait_: &'a clean::Type, type_: &'a clean::Type, deref_mut_: bool },
+}
+
+#[derive(Copy, Clone, PartialEq)]
+pub enum RenderMode {
+    Normal,
+    ForDeref { mut_: bool },
+}
+
 /// Metadata about implementations for a type or trait.
 #[derive(Clone, Debug)]
 pub struct Impl {