pub struct TextSegment<'arena> {
pub value: &'arena str,
pub span: Span,
}Expand description
One decoded text segment and the source range of its AST node.
Fields§
§value: &'arena strDecoded text value stored by Ferromark.
span: SpanOriginal source range for the complete AST text node.
Trait Implementations§
Source§impl<'arena> Clone for TextSegment<'arena>
impl<'arena> Clone for TextSegment<'arena>
impl<'arena> Copy for TextSegment<'arena>
Source§impl<'arena> Debug for TextSegment<'arena>
impl<'arena> Debug for TextSegment<'arena>
impl<'arena> Eq for TextSegment<'arena>
Source§impl<'arena> PartialEq for TextSegment<'arena>
impl<'arena> PartialEq for TextSegment<'arena>
impl<'arena> StructuralPartialEq for TextSegment<'arena>
Auto Trait Implementations§
impl<'arena> Forget for TextSegment<'arena>
impl<'arena> Freeze for TextSegment<'arena>
impl<'arena> Move for TextSegment<'arena>
impl<'arena> RefUnwindSafe for TextSegment<'arena>
impl<'arena> Send for TextSegment<'arena>
impl<'arena> Sync for TextSegment<'arena>
impl<'arena> Unpin for TextSegment<'arena>
impl<'arena> UnsafeUnpin for TextSegment<'arena>
impl<'arena> UnwindSafe for TextSegment<'arena>
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