Skip to main content

emit_text_line

Function emit_text_line 

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

Returns a bounded line with a trailing newline.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::emit_text_line 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::json_commands::emit_text_line.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::emit_text_line("{}");