pub struct CodeSpan<'a> {
pub pieces: ArenaVec<'a, Segment>,
pub span: Span,
}Fields§
§pieces: ArenaVec<'a, Segment>Content between the backtick runs, one segment per line
(a multi-line code span crosses container prefixes, so a single span can’t cover it;
a partially consumed tab leaves virtual spaces in padding).
The printer recomputes the minimum backtick run length from these.
Inside a table cell a | is \| in the source and stays so (nothing to escape).
span: SpanTrait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CodeSpan<'a>
impl<'a> !Send for CodeSpan<'a>
impl<'a> !UnwindSafe for CodeSpan<'a>
impl<'a> Freeze for CodeSpan<'a>
impl<'a> Sync for CodeSpan<'a>
impl<'a> Unpin for CodeSpan<'a>
impl<'a> UnsafeUnpin for CodeSpan<'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