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

Function encode_draw

canvas/src/encoding.rs:536–540  ·  view source on GitHub ↗
(item: Draw)

Source from the content-addressed store, hash-verified

534 }
535
536 fn encode_draw(item: Draw) -> String {
537 let mut result = String::new();
538 item.encode_canvas(&mut result);
539 result
540 }
541
542 #[test]
543 fn encode_newpath() { assert!(&encode_draw(Draw::Path(PathOp::NewPath)) == "Np") }

Callers

nothing calls this directly

Calls 1

encode_canvasMethod · 0.80

Tested by

no test coverage detected