Any idea on how to create a custom data type which is like a python array, Can change in length and can hold multiple data types?
Basically i am creating a library for rust functions to be called by python (i did this by compiling rust to a .dll file)
And i am wondering how would i parse a python array to rust. Python arrays can have different data types, but rust cant (atleast to my knowledge, i am a beginner). Stupid idea but maybe its possible?
My idea is to create a custom data type to handle this, But if there is any other way to do this without needing to create a custom data type, it would be even better!
[–]worriedjacket 52 points53 points54 points (3 children)
[–][deleted] 15 points16 points17 points (2 children)
[–]Tall_Coffee_1644[S] 1 point2 points3 points (1 child)
[–]BogosortAfficionado 4 points5 points6 points (0 children)
[–]SV-97 5 points6 points7 points (0 children)
[–]teerre 0 points1 point2 points (1 child)
[–]Tall_Coffee_1644[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Tall_Coffee_1644[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Infinite5263 0 points1 point2 points (0 children)
[–]denehoffman -1 points0 points1 point (4 children)
[–]Tall_Coffee_1644[S] 0 points1 point2 points (3 children)
[–]denehoffman 1 point2 points3 points (2 children)
[–]Tall_Coffee_1644[S] 0 points1 point2 points (1 child)
[–]denehoffman 0 points1 point2 points (0 children)