element: Remove unused pub structs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
974a942f5a
commit
2f082be1f6
1 changed files with 4 additions and 13 deletions
|
@ -52,20 +52,11 @@ pub static SCANSION_NS: &str = "https://matthewwild.co.uk/projects/scansion";
|
||||||
|
|
||||||
/// Strict Comparison marker
|
/// Strict Comparison marker
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct StrictComparison;
|
struct StrictComparison;
|
||||||
|
|
||||||
/// Non Strict Comparison marker
|
/// Non Strict Comparison marker
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct NonStrictComparison;
|
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,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
enum NodeType {
|
enum NodeType {
|
||||||
|
@ -75,7 +66,7 @@ enum NodeType {
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct ScanNode {
|
struct ScanNode {
|
||||||
pub node: Node,
|
node: Node,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ScanNode {
|
impl ScanNode {
|
||||||
|
@ -149,7 +140,7 @@ fn filter_whitespace_nodes(nodes: Vec<Node>) -> Vec<Node> {
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct ScanNodes<T: Debug> {
|
struct ScanNodes<T: Debug> {
|
||||||
pub nodes: Vec<Node>,
|
nodes: Vec<Node>,
|
||||||
_strict: PhantomData<T>,
|
_strict: PhantomData<T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue