pub enum WirePrintSpan {
Literal {
text: String,
start: usize,
end: usize,
span_id: String,
},
Value {
text: String,
start: usize,
end: usize,
span_id: String,
variable_name: Option<String>,
raw_value: Box<WireValue>,
type_info: Box<TypeInfo>,
current_format: String,
type_registry: TypeRegistry,
format_params: HashMap<String, WireValue>,
},
}Expand description
A span of text within a print result
Variants§
Literal
Literal text
Value
A value that can be hovered or reformatted
Fields
§
type_registry: TypeRegistryAvailable formats for this type
Trait Implementations§
Source§impl Clone for WirePrintSpan
impl Clone for WirePrintSpan
Source§fn clone(&self) -> WirePrintSpan
fn clone(&self) -> WirePrintSpan
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 WirePrintSpan
impl Debug for WirePrintSpan
Source§impl<'de> Deserialize<'de> for WirePrintSpan
impl<'de> Deserialize<'de> for WirePrintSpan
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 WirePrintSpan
impl PartialEq for WirePrintSpan
Source§impl Serialize for WirePrintSpan
impl Serialize for WirePrintSpan
impl StructuralPartialEq for WirePrintSpan
Auto Trait Implementations§
impl Freeze for WirePrintSpan
impl RefUnwindSafe for WirePrintSpan
impl Send for WirePrintSpan
impl Sync for WirePrintSpan
impl Unpin for WirePrintSpan
impl UnsafeUnpin for WirePrintSpan
impl UnwindSafe for WirePrintSpan
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