Skip to main content

truncate

Function truncate 

Source
fn truncate(text: &str, limit: usize) -> String
Expand description

A bounded prefix of a provider error body, cut on a char boundary.