MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / struct_v

Method struct_v

debugger/src/debugger/value_writer.rs:125–138  ·  view source on GitHub ↗
(&self, ty: &str, fields: I)

Source from the content-addressed store, hash-verified

123 }
124
125 fn struct_v<I: Iterator<Item = (String, Bytes)>>(&self, ty: &str, fields: I) -> Bytes {
126 let mut msg = Bytes::new();
127 let mut len: usize = 0;
128 for (n, v) in fields {
129 msg.identifier(&n);
130 msg.push_bytes(v);
131 msg.space();
132 len += 1;
133 }
134 msg.integer(len);
135 msg.identifier(&trim_type_name(ty));
136 msg.push_str("struct");
137 msg
138 }
139
140 fn enumerate_v(&self, ty: &str, variant: &str) -> Bytes {
141 let mut msg = Bytes::new();

Callers 4

write_return_valueFunction · 0.45
write_base_valueFunction · 0.45
ref_counted_toMethod · 0.45
ref_counted_innerMethod · 0.45

Calls 6

trim_type_nameFunction · 0.85
identifierMethod · 0.80
push_bytesMethod · 0.80
spaceMethod · 0.80
integerMethod · 0.80
push_strMethod · 0.80

Tested by

no test coverage detected