From c0e462944d518e47320a7224b7ef448f67268e9a Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 11 Oct 2023 11:17:57 -0400 Subject: [PATCH] Comment out the broken stuff. --- src/parser/affiliated_keyword.rs | 54 ++++++++++++++++---------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/parser/affiliated_keyword.rs b/src/parser/affiliated_keyword.rs index cbd12d7..b51b8b4 100644 --- a/src/parser/affiliated_keyword.rs +++ b/src/parser/affiliated_keyword.rs @@ -2,37 +2,37 @@ use crate::types::Keyword; use crate::types::Object; use crate::types::PlainList; -pub struct AffiliatedKeyword<'s> { - name: &'s str, -} +// pub struct AffiliatedKeyword<'s> { +// name: &'s str, +// } -pub enum AffiliatedKeywordValue<'s> { - SingleString(&'s str), - ListOfStrings(Vec<&'s str>), - ListOfObjects(Vec>), -} +// pub enum AffiliatedKeywordValue<'s> { +// SingleString(&'s str), +// ListOfStrings(Vec<&'s str>), +// ListOfObjects(Vec>), +// } -pub trait GetAffiliatedKeywords<'s> { - type ItemIterator: Iterator>; +// pub trait GetAffiliatedKeywords<'s> { +// type ItemIterator: Iterator>; - fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator; -} +// fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator; +// } -pub trait HandleAffiliatedKeywords<'s> { - fn get_stuff(&self) -> &'s str; -} +// pub trait HandleAffiliatedKeywords<'s> { +// fn get_stuff(&self) -> &'s str; +// } -impl<'s> GetAffiliatedKeywords<'s> for PlainList<'s> { - type ItemIterator = std::slice::Iter<'s, Keyword<'s>>; +// impl<'s> GetAffiliatedKeywords<'s> for PlainList<'s> { +// type ItemIterator = std::slice::Iter<'s, Keyword<'s>>; - fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator { - self.affiliated_keywords.iter() - } -} +// fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator { +// self.affiliated_keywords.iter() +// } +// } -impl<'s, I: GetAffiliatedKeywords<'s>> HandleAffiliatedKeywords<'s> for I { - fn get_stuff(&self) -> &'s str { - self.get_affiliated_keywords().count(); - todo!() - } -} +// impl<'s, I: GetAffiliatedKeywords<'s>> HandleAffiliatedKeywords<'s> for I { +// fn get_stuff(&self) -> &'s str { +// self.get_affiliated_keywords().count(); +// todo!() +// } +// }