pub struct PrintResult {
pub rendered: String,
pub spans: Vec<PrintSpan>,
}Expand description
Output of a print() call: rendered string plus per-span metadata.
The rendered field is the fully formatted string ready for stdout.
spans lets REPL-mode adapters preserve enough metadata to rerender
individual values without re-evaluating the whole expression.
Fields§
§rendered: String§spans: Vec<PrintSpan>Trait Implementations§
Source§impl Clone for PrintResult
impl Clone for PrintResult
Source§fn clone(&self) -> PrintResult
fn clone(&self) -> PrintResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PrintResult
impl RefUnwindSafe for PrintResult
impl Send for PrintResult
impl Sync for PrintResult
impl Unpin for PrintResult
impl UnsafeUnpin for PrintResult
impl UnwindSafe for PrintResult
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