Enum readme_sync::CMarkItem [−][src]
pub enum CMarkItem {
Parsed {
event: Event<'static>,
range: Range<usize>,
text_source: TextSource,
},
Created {
event: Event<'static>,
note: Cow<'static, str>,
},
Modified {
event: Event<'static>,
nodes: Box<[Arc<CMarkItem>]>,
note: Cow<'static, str>,
},
Removed {
nodes: Box<[Arc<CMarkItem>]>,
note: Cow<'static, str>,
},
Noted {
node: Arc<CMarkItem>,
note: Cow<'static, str>,
},
}
Expand description
An enum that store Markdown event, its origin, and modifications. The event modification tree is stored to improve error messages.
Variants
Parsed
A Markdown event parsed from the specified text source.
Created
A Markdown event created by data transform functions.
Modified
Fields
event: Event<'static>
A Markdown event created from other events.
A Markdown event created from other Markdown events.
Removed
Fields
A removed Markdown events.
Noted
A non-modified Markdown event that noted by data transform function.
Implementations
Creates CMarkItem
with the specified Event and its note.
Creates CMarkItem
as an event parsed from the specified text source range.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CMarkItem
impl UnwindSafe for CMarkItem
Blanket Implementations
Mutably borrows from an owned value. Read more