[][src]Function voca_rs::query::starts_with

pub fn starts_with(subject: &str, start: &str) -> bool

Checks whether subject starts with start.

Arguments

Example

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