MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / map

Method map

canvas/src/decoding.rs:35–40  ·  view source on GitHub ↗
(self, map_fn: TFn)

Source from the content-addressed store, hash-verified

33 }
34
35 pub fn map<TFn: FnOnce(T) -> S, S>(self, map_fn: TFn) -> PartialResult<S> {
36 match self {
37 PartialResult::FullMatch(result) => PartialResult::FullMatch(map_fn(result)),
38 PartialResult::MatchMore(data) => PartialResult::MatchMore(data)
39 }
40 }
41}
42
43///

Callers 15

decode_sprite_idMethod · 0.80
decode_layer_idMethod · 0.80
decode_font_idMethod · 0.80
decode_texture_idMethod · 0.80
decode_gradient_idMethod · 0.80
decode_all_streamFunction · 0.80
table_dataMethod · 0.80
base_font_metricsMethod · 0.80
drawMethod · 0.80
writeMethod · 0.80
dropMethod · 0.80

Calls

no outgoing calls

Tested by 1

decode_all_streamFunction · 0.64