pub enum ValueData {
Byte(i8),
Char(u16),
Float(f32),
Double(f64),
Int(i32),
Long(i64),
Short(i16),
Boolean(bool),
Object(ObjectId),
Void,
}Variants§
Byte(i8)
Char(u16)
Float(f32)
Double(f64)
Int(i32)
Long(i64)
Short(i16)
Boolean(bool)
Object(ObjectId)
Void
Implementations§
Source§impl ValueData
impl ValueData
Sourcepub fn format_primitive(&self) -> Option<String>
pub fn format_primitive(&self) -> Option<String>
Render a primitive wire value. None for a reference, which cannot be described without asking
the debuggee about it.
One renderer, one home (TYPE-1,
#48). mcp-server carried a
byte-identical copy of this match called render_primitive, and the copy was the one the tool
actually ran — Value::format below was reached only through array elements and the
type-mismatch message. That is what made this file’s coverage number a lie: it measured 16.67%
region and the review’s verdict was “most arms are for types the probes never produce”, which was
half the answer. The other half was that the arms were bypassed. Rendering a wire value belongs
to the crate that reads the wire, so the seam is here and mcp-server calls across it; the
Option is what keeps the two audiences apart, because mcp-server has a much better answer for
a reference than an id and is the only side that can pay a round trip to get it.