[][src]Function voca_rs::query::ends_with

pub fn ends_with(subject: &str, end: &str) -> bool

Checks whether subject ends with end.

Arguments

  • subject - The string to verify.
  • end - The ending string.

Example

use voca_rs::*;
query::ends_with("say hello to my little friend", "little friend");
// => true
query::ends_with("say hello to my little friend", "little");
// => false