Add the code structure for planning.

This commit is contained in:
Tom Alexander
2023-04-21 21:33:23 -04:00
parent 591d9c5e1f
commit 2ec1d4f855
5 changed files with 49 additions and 0 deletions

View File

@@ -69,6 +69,11 @@ pub struct DiarySexp<'s> {
pub source: &'s str,
}
#[derive(Debug)]
pub struct Planning<'s> {
pub source: &'s str,
}
impl<'s> Paragraph<'s> {
pub fn of_text(input: &'s str) -> Self {
let mut objects = Vec::with_capacity(1);
@@ -135,3 +140,9 @@ impl<'s> Source<'s> for DiarySexp<'s> {
self.source
}
}
impl<'s> Source<'s> for Planning<'s> {
fn get_source(&'s self) -> &'s str {
self.source
}
}