Need a constant value for generic numbers.

This commit is contained in:
Tom Alexander 2023-11-01 00:49:22 -04:00
parent f0868ba3ed
commit e0ec5c115f
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ use super::Object;
use super::PostBlank;
use super::StandardProperties;
use super::Timestamp;
use crate::types::remove_trailing::RemoveTrailing;
pub type PriorityCookie = u8;
pub type HeadlineLevel = u16;
@ -62,6 +63,10 @@ impl<'s> StandardProperties<'s> for Document<'s> {
}
fn get_contents<'b>(&'b self) -> Option<&'s str> {
let post_blank = self.get_post_blank();
let foo: RemoveTrailing<_, post_blank> =
RemoveTrailing::new(self.source.split_inclusive("\n"));
// self.source.split_inclusive("\n")
todo!()
}

View File

@ -6,6 +6,7 @@ mod greater_element;
mod lesser_element;
mod macros;
mod object;
mod remove_trailing;
mod standard_properties;
mod util;
pub use affiliated_keyword::AffiliatedKeyword;