diff options
| author | Philipp A | 2018-12-10 09:38:31 +0100 | 
|---|---|---|
| committer | Philipp A | 2018-12-30 17:29:00 +0100 | 
| commit | 6d995f698f580aba9e67b847432899ce841e6e7d (patch) | |
| tree | e2388a9967c230934e8d83731605afb57867e841 /src/document_tree/elements.rs | |
| parent | d019d0bff16e7277533a89399a57f290439bc2f5 (diff) | |
| download | rust-rst-6d995f698f580aba9e67b847432899ce841e6e7d.tar.bz2 | |
document conversion
Diffstat (limited to 'src/document_tree/elements.rs')
| -rw-r--r-- | src/document_tree/elements.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/document_tree/elements.rs b/src/document_tree/elements.rs index 72f10e8..52b1f5b 100644 --- a/src/document_tree/elements.rs +++ b/src/document_tree/elements.rs @@ -26,7 +26,7 @@ pub trait Element {  	fn classes_mut(&mut self) -> &mut Vec<String>;  } -#[derive(Debug,Default,Serialize)] +#[derive(Debug,Default,PartialEq,Serialize)]  pub struct CommonAttributes {  	ids:     Vec<ID>,  	names:   Vec<NameToken>, @@ -78,7 +78,7 @@ macro_rules! impl_new {(  	),* $(,)* }  ) => (  	$(#[$attr])* -	#[derive(Debug,Serialize)] +	#[derive(Debug,PartialEq,Serialize)]  	pub struct $name { $(   		$(#[$fattr])* $field: $typ,  	)* } @@ -136,7 +136,7 @@ impl_children!(Document, StructuralSubElement);  impl_elems!(  	//structual elements -	(Section, SubSection) +	(Section, StructuralSubElement)  	(Topic,   SubTopic)  	(Sidebar, SubSidebar) | 
