Skip to main content

BYTES_REASON

Constant BYTES_REASON 

Source
pub(crate) const BYTES_REASON: &str = "marked as bytes, not text";
Expand description

Why a string marked with R’s bytes encoding is refused: its bytes are not text in any encoding, so it has no Rust str. Worded as the reason of an argument error ('x' must be a single string: marked as bytes, not text), and of each element of a batched one (marked as bytes, not text (elements 2, 4)).