Skip to main content

bounded

Function bounded 

Source
pub fn bounded(bytes: &[u8], max: usize) -> (String, bool)
Expand description

Keep the head and tail of bytes within max, marking the cut. Output is lossy UTF-8; the model sees text, never raw bytes.