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

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

Checks whether subject ends with end.

Arguments

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
use voca_rs::Voca;
"say hello to my little friend"._ends_with("little friend");
// => true