pub trait FileInterface {
    // Required method
    fn filepath(&self) -> Box<Path>;

    // Provided methods
    fn extract(&mut self) -> Vec<String> { ... }
    fn open_file(&self) -> File { ... }
}
Expand description

A complete interface for interacting with files and file-like objects

Required Methods§

source

fn filepath(&self) -> Box<Path>

Provided Methods§

source

fn extract(&mut self) -> Vec<String>

source

fn open_file(&self) -> File

Implementors§