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

Function encode_f32

canvas/src/encoding.rs:527–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

525
526 #[test]
527 fn encode_f32() {
528 let test_number: f32 = 3.141;
529
530 let mut encoded = String::new();
531 test_number.encode_canvas(&mut encoded);
532
533 assert!(encoded == "lYQSAB".to_string());
534 }
535
536 fn encode_draw(item: Draw) -> String {
537 let mut result = String::new();

Callers

nothing calls this directly

Calls 1

encode_canvasMethod · 0.80

Tested by

no test coverage detected