Compare range type.

This commit is contained in:
Tom Alexander
2023-10-02 13:42:46 -04:00
parent d04c8c832c
commit 3ed9b552e2
4 changed files with 30 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ pub use object::Subscript;
pub use object::Superscript;
pub use object::Target;
pub use object::Timestamp;
pub use object::TimestampRangeType;
pub use object::TimestampType;
pub use object::Underline;
pub use object::Verbatim;

View File

@@ -186,6 +186,7 @@ pub struct Superscript<'s> {
pub struct Timestamp<'s> {
pub source: &'s str,
pub timestamp_type: TimestampType,
pub range_type: TimestampRangeType,
}
#[derive(Debug, PartialEq)]
@@ -197,6 +198,12 @@ pub enum TimestampType {
InactiveRange,
}
#[derive(Debug, PartialEq)]
pub enum TimestampRangeType {
None,
DateRange,
}
impl<'s> GetStandardProperties<'s> for Object<'s> {
fn get_standard_properties<'b>(&'b self) -> &'b dyn StandardProperties<'s> {
match self {