Skip to main content

decode_blocks

Function decode_blocks 

Source
pub fn decode_blocks(s: &str) -> Result<Vec<Block>>
Expand description

Decodes all block envelopes found in s. Non-marker chars are skipped, so the emoji may be embedded in arbitrary text. Any started envelope that is malformed (bad length chars, truncated data, bad JSON) is an error — never a panic.