aboutsummaryrefslogtreecommitdiffstats
path: root/src/document_tree/mod.rs
diff options
context:
space:
mode:
authorPhil Schaf2015-11-14 21:18:04 +0100
committerPhil Schaf2015-11-14 21:18:04 +0100
commit1434756b2b6cedb3d56528ca1802a92be4eaba56 (patch)
tree84a30e24279f2dda29fc4a7677ca6b79d40b04e6 /src/document_tree/mod.rs
parent5fdb21df228c78061cce9ee910fa87da0fd99d46 (diff)
downloadrust-rst-1434756b2b6cedb3d56528ca1802a92be4eaba56.tar.bz2
improved HasChildren trait
Diffstat (limited to 'src/document_tree/mod.rs')
-rw-r--r--src/document_tree/mod.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/document_tree/mod.rs b/src/document_tree/mod.rs
index 868b9f8..35f2540 100644
--- a/src/document_tree/mod.rs
+++ b/src/document_tree/mod.rs
@@ -6,16 +6,6 @@ pub mod element_categories;
pub mod extra_attributes;
pub mod attribute_types;
-use self::element_categories::StructuralSubElement;
-
pub use self::elements::*; //Element,CommonAttributes,
pub use self::extra_attributes::ExtraAttributes;
pub use self::element_categories::HasChildren;
-
-#[derive(Default,Debug)]
-pub struct Document { children: Vec<Box<StructuralSubElement>> }
-impl HasChildren<StructuralSubElement> for Document {
- fn add_child<R: Into<StructuralSubElement>>(&mut self, child: R) {
- self.children.push(Box::new(child.into()));
- }
-}