MCPcopy Index your code
hub / github.com/carllerche/assert-struct / push

Method push

assert-struct/src/error.rs:260–271  ·  view source on GitHub ↗
(
        &mut self,
        error_node: &'static PatternNode,
        actual: String,
        expected: Option<String>,
    )

Source from the content-addressed store, hash-verified

258 }
259
260 pub fn push(
261 &mut self,
262 error_node: &'static PatternNode,
263 actual: String,
264 expected: Option<String>,
265 ) {
266 self.errors.push(ErrorContext {
267 actual_value: actual,
268 expected_value: expected,
269 error_node,
270 });
271 }
272}
273
274/// Build a human-readable annotation label for a failed assertion.

Callers 12

process_tuple_elementsFunction · 0.80
expand_slice_assertionFunction · 0.80
generate_pattern_nodesFunction · 0.80
parse_pattern_listFunction · 0.80
parseMethod · 0.80
parse_one_dot_intoMethod · 0.80
parse_one_intoMethod · 0.80
parse_comma_separatedMethod · 0.80
parse_map_entriesFunction · 0.80
parseMethod · 0.80
set_matchFunction · 0.80
insertMethod · 0.80

Calls

no outgoing calls

Tested by 1

insertMethod · 0.64