Skip to main content

starts_with

Function starts_with 

Source
pub fn starts_with(This: This<Arc<String>>, prefix: Arc<String>) -> bool
Expand description

Returns true if a string starts with another string.

ยงExample

"abc".starts_with("a") == true