Skip to main content

reduce_bytes

Function reduce_bytes 

Source
pub fn reduce_bytes(
    rule: &Rule,
    input: &[u8],
    success: bool,
) -> Result<Vec<u8>, String>
Expand description

Reduce one in-memory byte stream with the same engine used by child capture.

ยงErrors

Returns an error when the supplied rule is not a complete reduction rule.