ends_with_position

Function ends_with_position 

Source
pub fn ends_with_position(
    string: &str,
    target: &str,
    position: Option<usize>,
) -> bool
Expand description

Checks if string ends with the given target string with the given position

ยงExample

use lo_::string::*;
let content = "abc";
assert_eq!(ends_with_position(content, "b", Some(2)), true);