Struct gcj_helper::IoHelper [] [src]

pub struct IoHelper { /* fields omitted */ }

Provides I/O support for problem solving code.

The IoHelper type allows reading from an input file and writing to an output file. IoHelper::read_line() reads the next line of text from the input file, and io::Write is implemented for IoHelper such that data is written to the output file.

Methods

impl IoHelper
[src]

Reads a line of text from the input file.

Panics

This method panics if reading fails for any reason, such as having reached the end of the input file.

Returns the current test case number.

Returns the total number of test cases in the input file.

Trait Implementations

impl Debug for IoHelper
[src]

Formats the value using the given formatter.

impl Write for IoHelper
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more