Function voca_rs::query::starts_with [−][src]
pub fn starts_with(subject: &str, start: &str) -> bool
Expand description
Checks whether subject
starts with start
.
Arguments
subject
- The string to verify.start
- The starting string.
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