pub enum PrintSpan {
Literal {
text: String,
start: usize,
end: usize,
span_id: String,
},
Value {
text: String,
start: usize,
end: usize,
span_id: String,
source_expr: String,
},
}Expand description
A single span within a rendered print() output.
Spans capture either literal text (no value reference) or formatted
output for a specific source-level value. Used by the REPL to enable
post-execution reformatting via :reformat.
Variants§
Literal
Literal text emitted by the formatter (no value reference).
Value
Formatted output for a specific value, with the source expression preserved so the REPL can re-render with a different format spec.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrintSpan
impl RefUnwindSafe for PrintSpan
impl Send for PrintSpan
impl Sync for PrintSpan
impl Unpin for PrintSpan
impl UnsafeUnpin for PrintSpan
impl UnwindSafe for PrintSpan
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