Skip to main content

starts_with

Function starts_with 

Source
pub fn starts_with(value: &str, prefix: &str) -> bool
Expand description

Tests whether one string begins with another string.

§Parameters

§Returns

Returns true when the condition checked by crate::platform::starts_with holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::platform::starts_with("value", todo!());
  • crate::platform for adjacent helpers that share the same runtime surface.