pub struct CMarkSpan<'a> {
pub range: &'a Range<usize>,
pub text_source: &'a TextSource,
pub note: String,
}
Expand description
Event’s region of source text.
Fields§
§range: &'a Range<usize>
The corresponding range of the original event in the source text.
text_source: &'a TextSource
Text source of original parsed event.
note: String
Cumulative data transformation note.
Trait Implementations§
Source§impl<'a> Extend<CMarkSpan<'a>> for CodemapSpans<'_>
impl<'a> Extend<CMarkSpan<'a>> for CodemapSpans<'_>
Source§fn extend<T: IntoIterator<Item = CMarkSpan<'a>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = CMarkSpan<'a>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl<'a> StructuralPartialEq for CMarkSpan<'a>
Auto Trait Implementations§
impl<'a> Freeze for CMarkSpan<'a>
impl<'a> RefUnwindSafe for CMarkSpan<'a>
impl<'a> Send for CMarkSpan<'a>
impl<'a> Sync for CMarkSpan<'a>
impl<'a> Unpin for CMarkSpan<'a>
impl<'a> UnwindSafe for CMarkSpan<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more