问题
What is the Rust equivalent of Go's HasSuffix() function?
回答1:
It turns out there is str::ends_with. For some reason, code completion didn't find it for me.
来源:https://stackoverflow.com/questions/41015509/check-if-string-ends-with-given-suffix-in-rust