Skip to main content

bounded_embedding_input

Function bounded_embedding_input 

Source
pub fn bounded_embedding_input(text: &str, max_bytes: usize) -> (&str, bool)
Expand description

Return the longest UTF-8-safe prefix of text within max_bytes and whether it was shortened.