diff --git a/src/element.rs b/src/element.rs index 5afd862..b484561 100644 --- a/src/element.rs +++ b/src/element.rs @@ -52,20 +52,11 @@ pub static SCANSION_NS: &str = "https://matthewwild.co.uk/projects/scansion"; /// Strict Comparison marker #[derive(Debug)] -pub struct StrictComparison; +struct StrictComparison; /// Non Strict Comparison marker #[derive(Debug)] -pub struct NonStrictComparison; - -/// To be used during comparison of text nodes -#[derive(Debug, Clone, PartialEq)] -pub enum Space { - /// Keep spaces during comparison - Keep, - /// Dismiss spaces during comparison - Dismiss, -} +struct NonStrictComparison; #[derive(Debug, Clone, PartialEq)] enum NodeType { @@ -75,7 +66,7 @@ enum NodeType { #[derive(Debug, Clone)] struct ScanNode { - pub node: Node, + node: Node, } impl ScanNode { @@ -149,7 +140,7 @@ fn filter_whitespace_nodes(nodes: Vec) -> Vec { #[derive(Debug)] struct ScanNodes { - pub nodes: Vec, + nodes: Vec, _strict: PhantomData, }