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

Method decode_texture_id

canvas/src/decoding.rs:1235–1238  ·  view source on GitHub ↗

Consumes characters until we have a texture ID

(next_chr: char, param: String)

Source from the content-addressed store, hash-verified

1233 /// Consumes characters until we have a texture ID
1234 ///
1235 fn decode_texture_id(next_chr: char, param: String) -> Result<PartialResult<TextureId>, DecoderError> {
1236 Self::decode_compact_id(next_chr, param)
1237 .map(|id| id.map(|id| TextureId(id)))
1238 }
1239
1240 ///
1241 /// Consumes characters until we have a gradient ID

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
TextureIdClass · 0.70

Tested by

no test coverage detected