Import

Trait Import 

Source
pub trait Import {
    // Required method
    fn import<T: FromStr + 'static>(&self) -> Result<T>;
}

Required Methods§

Source

fn import<T: FromStr + 'static>(&self) -> Result<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Import for File

Source§

fn import<T: FromStr + 'static>(&self) -> Result<T>

Imports data from text File.

Source§

impl Import for Stdin

Source§

fn import<T: FromStr + 'static>(&self) -> Result<T>

Imports data from Stdin.

Implementors§