Skip to main content

hash_result_text

Function hash_result_text 

Source
pub fn hash_result_text(text: &str) -> u64
Expand description

Hash one answer’s text.

The Value::String arm of hash_result_content, without building a Value to hold a string the caller already has. Tool results run to tens of kilobytes and the proxy hashes them on a pre-admission path, so the copy is worth avoiding.