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

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

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