Skip to main content

emit_text_file_to_stdout

Function emit_text_file_to_stdout 

Source
pub fn emit_text_file_to_stdout(path: &Path) -> Result<String, i32>
Expand description

Writes a bounded text file to stdout as a string result.

§Parameters

§Returns

Returns the successful value produced by crate::binaries::emit_text_file_to_stdout or an error when the operation fails.

§Errors

Returns an error value when crate::binaries::emit_text_file_to_stdout cannot complete successfully.

§Performance

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

§Examples

ⓘ
let _result = pharos_native::binaries::emit_text_file_to_stdout(std::path::Path::new("fixture.json"));
  • crate::binaries for adjacent helpers that share the same runtime surface.