pub struct WirePrintResult {
pub rendered: String,
pub spans: Vec<WirePrintSpan>,
}Expand description
Result of a print statement or REPL expression
Fields§
§rendered: StringFully rendered string with ANSI colors
spans: Vec<WirePrintSpan>Individual spans for rich interaction (hover, formatting changes)
Implementations§
Trait Implementations§
Source§impl Clone for WirePrintResult
impl Clone for WirePrintResult
Source§fn clone(&self) -> WirePrintResult
fn clone(&self) -> WirePrintResult
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 moreSource§impl Debug for WirePrintResult
impl Debug for WirePrintResult
Source§impl<'de> Deserialize<'de> for WirePrintResult
impl<'de> Deserialize<'de> for WirePrintResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WirePrintResult
impl PartialEq for WirePrintResult
Source§impl Serialize for WirePrintResult
impl Serialize for WirePrintResult
impl StructuralPartialEq for WirePrintResult
Auto Trait Implementations§
impl Freeze for WirePrintResult
impl RefUnwindSafe for WirePrintResult
impl Send for WirePrintResult
impl Sync for WirePrintResult
impl Unpin for WirePrintResult
impl UnsafeUnpin for WirePrintResult
impl UnwindSafe for WirePrintResult
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