We should add this method to the rust source code since it seems kinda silly that it already isn't there