ends_with

Function ends_with 

Source
pub fn ends_with(s: &str, suffix: &str) -> bool
Expand description

Check if a string ends with a specific suffix

§Arguments

  • s - The string to check
  • suffix - The suffix to look for

§Returns

True if the string ends with the suffix, false otherwise