pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, ReaderPathError> {
        match path.as_ref().to_str() {
            Some(p) if path.as_ref().exists() => Ok(try!(Self::new(p.as_bytes()))),
            _ => Err(ReaderPathError::InvalidPath),
        }
    }
/// Create a new Reader from path.
///
/// # Arguments
///
/// * `path` - the path to open.
Create a new Reader from path.
Create a new Reader from path .
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, ReaderPathError> {
        match path.as_ref().to_str() {
            Some(p) if path.as_ref().exists() => Ok(try!(Self::new(p.as_bytes()))),
            _ => Err(ReaderPathError::InvalidPath),
        }
    }
pub fn from_path < P : AsRef < Path > > ( path : P ) -> Result < Self , ReaderPathError > { match path . as_ref ( ) . to_str ( ) { Some ( p ) if path . as_ref ( ) . exists ( ) => Ok ( try ! ( Self new ( p as_bytes ( ) ) ) ) , _ => Err ( ReaderPathError :: InvalidPath ) , } }
Create a new Reader from path.
Create a new Reader from path .
path
P
path
P