mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-09 19:15:27 -05:00
printer: disable NodeCollection printing
This commit is contained in:
@@ -5,6 +5,7 @@ use node_types::StandardType;
|
||||
|
||||
/// A collection of node definitions (`NodeDefinition`)
|
||||
#[derive(Debug)]
|
||||
#[allow(dead_code)]
|
||||
pub struct NodeCollection<'buf> {
|
||||
base: NodeDefinition<'buf>,
|
||||
attributes: Vec<NodeDefinition<'buf>>,
|
||||
@@ -12,6 +13,7 @@ pub struct NodeCollection<'buf> {
|
||||
}
|
||||
|
||||
impl<'buf> NodeCollection<'buf> {
|
||||
#[allow(dead_code)]
|
||||
pub fn from_iter<I>(mut iter: I) -> Option<NodeCollection<'buf>>
|
||||
where I: Iterator<Item = NodeDefinition<'buf>>
|
||||
{
|
||||
@@ -24,6 +26,7 @@ impl<'buf> NodeCollection<'buf> {
|
||||
NodeCollection::with_base(base, &mut iter)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn with_base<I>(base: NodeDefinition<'buf>, iter: &mut I) -> Option<NodeCollection<'buf>>
|
||||
where I: Iterator<Item = NodeDefinition<'buf>>
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use error::Result;
|
||||
use node::NodeCollection;
|
||||
//use node::NodeCollection;
|
||||
use node_types::StandardType;
|
||||
use reader::Reader;
|
||||
|
||||
@@ -55,8 +55,10 @@ impl Printer {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
let collection = NodeCollection::from_iter(definitions.into_iter());
|
||||
eprintln!("collection: {:#?}", collection);
|
||||
*/
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user