Struct extra::fileinput::FileInputState

pub struct FileInputState {
    current_path: std::option::Option,
    line_num: uint,
    line_num_file: uint,
}

A summary of the internal state of a FileInput object. line_num and line_num_file represent the number of lines read in total and in the current file respectively. current_path is None if the current file is stdin.

Trait Implementations

impl std::clone::Clone for FileInputState

fn clone(&self) -> FileInputState