[][src]Function onigiri::validator::ends_with

pub fn ends_with(vc: &[char], c: char) -> bool

Validate Vec<char> whether it ends with c: char.

use onigiri::validator::ends_with;

let test_vc = vec!['(', '1', '2', ')'];

assert_eq!(
    ends_with(&test_vc, ')'),
    true
);
assert_eq!(
    ends_with(&test_vc, '('),
    false
);