Skip to main content

truncate_text

Function truncate_text 

pub fn truncate_text(text: String) -> String
Expand description

Truncates a capability string on a valid UTF-8 character boundary to at most MAX_CAPABILITY_TEXT_BYTES bytes.