MCPcopy Create free account
hub / github.com/TankHQ/tank / array_conversions

Function array_conversions

tests/value.rs:2233–2237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2231
2232 #[test]
2233 fn array_conversions() {
2234 let v = [10_i32, 20, 30].as_value();
2235 let back: [i32; 3] = <[i32; 3]>::try_from_value(v).unwrap();
2236 assert_eq!(back, [10, 20, 30]);
2237 }
2238
2239 #[test]
2240 fn hashmap_conversions() {

Callers

nothing calls this directly

Calls 1

as_valueMethod · 0.45

Tested by

no test coverage detected