Generally the opinion is &quot;it might work but it would be terrible Rust,&quot; and given that FFI into C has no overhead, replacing things a symbol at a time might be a better approach to this kind of problem.