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

Method decode_gradient_id

canvas/src/decoding.rs:1243–1246  ·  view source on GitHub ↗

Consumes characters until we have a gradient ID

(next_chr: char, param: String)

Source from the content-addressed store, hash-verified

1241 /// Consumes characters until we have a gradient ID
1242 ///
1243 fn decode_gradient_id(next_chr: char, param: String) -> Result<PartialResult<GradientId>, DecoderError> {
1244 Self::decode_compact_id(next_chr, param)
1245 .map(|id| id.map(|id| GradientId(id)))
1246 }
1247
1248 ///
1249 /// Decodes a font drawing command

Callers

nothing calls this directly

Calls 2

GradientIdClass · 0.85
mapMethod · 0.80

Tested by

no test coverage detected