I want to call them dynamically as I have some separate array that stores true or false so anything that is true would call the function(s) by its position so do you know what I can do to put functions with different signatures into an array?
How are you planning on calling them? Rust is statically typed, so you'll have to separate the calls based on the argument and return types anyway.
You still didn't specify what you need this for at the higher level. How are you obtaining the arguments and what do you want to do with the return type? Why aren't you just doing something like the following?
for flag in bool_array {
if flag {
// code that calls `triangle()`
} else {
// code that calls `square()`
}
}