Trait ucd_parse::UcdFile

source ·
pub trait UcdFile: Clone + Debug + Default + Eq + FromStr<Err = Error> + PartialEq {
    // Required method
    fn relative_file_path() -> &'static Path;

    // Provided methods
    fn file_path<P: AsRef<Path>>(ucd_dir: P) -> PathBuf { ... }
    fn from_dir<P: AsRef<Path>>(
        ucd_dir: P
    ) -> Result<UcdLineParser<File, Self>, Error> { ... }
}
Expand description

Describes a single UCD file.

Required Methods§

source

fn relative_file_path() -> &'static Path

The file path corresponding to this file, relative to the UCD directory.

Provided Methods§

source

fn file_path<P: AsRef<Path>>(ucd_dir: P) -> PathBuf

The full file path corresponding to this file given the UCD directory path.

source

fn from_dir<P: AsRef<Path>>( ucd_dir: P ) -> Result<UcdLineParser<File, Self>, Error>

Create an iterator over each record in this UCD file.

The parameter should correspond to the directory containing the UCD.

Object Safety§

This trait is not object safe.

Implementors§