[−][src]Enum readme_sync::CMarkItem
An enum that store Markdown event, its origin, and modifications. The event modification tree is stored to improve error messages.
Variants
A Markdown event parsed from the specified text source.
Fields of Parsed
event: Event<'static>
Parsed Markdown event.
range: Range<usize>
The corresponding range of the event in the source text.
text_source: TextSource
Text source.
A Markdown event created by data transform functions.
Fields of Created
A Markdown event created from other Markdown events.
Fields of Modified
A removed Markdown events.
Fields of Removed
A non-modified Markdown event that noted by data transform function.
Fields of Noted
Implementations
impl<'a> CMarkItem
[src]
pub fn new(event: Event<'static>, note: Cow<'static, str>) -> Arc<Self>
[src]
Creates CMarkItem
with the specified Event and its note.
pub fn from(
event: Event<'static>,
range: Range<usize>,
text_source: TextSource
) -> Arc<Self>
[src]
event: Event<'static>,
range: Range<usize>,
text_source: TextSource
) -> Arc<Self>
Creates CMarkItem
as an event parsed from the specified text source range.
pub fn event(&self) -> Option<&Event<'static>>
[src]
Returns the event or None if it is removed.
pub fn spans(&self) -> Vec<CMarkSpan<'_>>
[src]
Returns a Vec
of event spans.
Trait Implementations
impl Clone for CMarkItem
[src]
impl Debug for CMarkItem
[src]
impl PartialEq<CMarkItem> for CMarkItem
[src]
impl StructuralPartialEq for CMarkItem
[src]
Auto Trait Implementations
impl RefUnwindSafe for CMarkItem
impl Send for CMarkItem
impl Sync for CMarkItem
impl Unpin for CMarkItem
impl UnwindSafe for CMarkItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,