Define greater and lesser elements.

This commit is contained in:
Tom Alexander
2023-03-23 17:26:07 -04:00
parent 66befc66a9
commit 35d60c10ba
5 changed files with 22 additions and 0 deletions

View File

@@ -2,20 +2,24 @@ pub trait Source<'s> {
fn get_source(&'s self) -> &'s str;
}
#[derive(Debug)]
pub enum Object<'s> {
TextMarkup(TextMarkup<'s>),
PlainText(PlainText<'s>),
RegularLink(RegularLink<'s>),
}
#[derive(Debug)]
pub struct TextMarkup<'s> {
pub source: &'s str,
}
#[derive(Debug)]
pub struct PlainText<'s> {
pub source: &'s str,
}
#[derive(Debug)]
pub struct RegularLink<'s> {
pub source: &'s str,
}