Skip to main content

capture_trimmed

Function capture_trimmed 

Source
pub fn capture_trimmed(text: &str) -> Option<String>
Expand description

Trims a captured command-like value while rejecting control characters.

§Parameters

§Returns

Returns Some when crate::runtime::ops_bridge::capture_trimmed can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::ops_bridge::capture_trimmed.

§Examples

ⓘ
let _result = pharos_native::runtime::ops_bridge::capture_trimmed("{}");