Skip to main content

as_text

Function as_text 

Source
pub fn as_text(bytes: &[u8]) -> Option<&str>
Expand description

The bytes as text, when they are valid UTF-8 without NUL — the precondition for diffing at the text rung without a projection.