Comment out the broken stuff.
This commit is contained in:
parent
63614841e8
commit
c0e462944d
@ -2,37 +2,37 @@ use crate::types::Keyword;
|
|||||||
use crate::types::Object;
|
use crate::types::Object;
|
||||||
use crate::types::PlainList;
|
use crate::types::PlainList;
|
||||||
|
|
||||||
pub struct AffiliatedKeyword<'s> {
|
// pub struct AffiliatedKeyword<'s> {
|
||||||
name: &'s str,
|
// name: &'s str,
|
||||||
}
|
// }
|
||||||
|
|
||||||
pub enum AffiliatedKeywordValue<'s> {
|
// pub enum AffiliatedKeywordValue<'s> {
|
||||||
SingleString(&'s str),
|
// SingleString(&'s str),
|
||||||
ListOfStrings(Vec<&'s str>),
|
// ListOfStrings(Vec<&'s str>),
|
||||||
ListOfObjects(Vec<Object<'s>>),
|
// ListOfObjects(Vec<Object<'s>>),
|
||||||
}
|
// }
|
||||||
|
|
||||||
pub trait GetAffiliatedKeywords<'s> {
|
// pub trait GetAffiliatedKeywords<'s> {
|
||||||
type ItemIterator: Iterator<Item = &'s Keyword<'s>>;
|
// type ItemIterator: Iterator<Item = &'s Keyword<'s>>;
|
||||||
|
|
||||||
fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator;
|
// fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator;
|
||||||
}
|
// }
|
||||||
|
|
||||||
pub trait HandleAffiliatedKeywords<'s> {
|
// pub trait HandleAffiliatedKeywords<'s> {
|
||||||
fn get_stuff(&self) -> &'s str;
|
// fn get_stuff(&self) -> &'s str;
|
||||||
}
|
// }
|
||||||
|
|
||||||
impl<'s> GetAffiliatedKeywords<'s> for PlainList<'s> {
|
// impl<'s> GetAffiliatedKeywords<'s> for PlainList<'s> {
|
||||||
type ItemIterator = std::slice::Iter<'s, Keyword<'s>>;
|
// type ItemIterator = std::slice::Iter<'s, Keyword<'s>>;
|
||||||
|
|
||||||
fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator {
|
// fn get_affiliated_keywords<'r: 's>(&'r self) -> Self::ItemIterator {
|
||||||
self.affiliated_keywords.iter()
|
// self.affiliated_keywords.iter()
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
impl<'s, I: GetAffiliatedKeywords<'s>> HandleAffiliatedKeywords<'s> for I {
|
// impl<'s, I: GetAffiliatedKeywords<'s>> HandleAffiliatedKeywords<'s> for I {
|
||||||
fn get_stuff(&self) -> &'s str {
|
// fn get_stuff(&self) -> &'s str {
|
||||||
self.get_affiliated_keywords().count();
|
// self.get_affiliated_keywords().count();
|
||||||
todo!()
|
// todo!()
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user