Skip to main content

prefix

Function prefix 

Source
pub fn prefix(s: &str, budget: usize) -> &str
Expand description

The longest prefix of s no longer than budget bytes, cut at a character boundary.