pub struct PrintResult {
pub rendered: String,
pub spans: Vec<PrintSpan>,
}Expand description
Print result with structured spans for reformattable output
Fields§
§rendered: StringRendered output string (cached)
spans: Vec<PrintSpan>Structured spans with metadata for reformatting
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 · 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