Trait ucd_parse::UcdFile
[−]
[src]
pub trait UcdFile: Clone + Debug + Default + Eq + FromStr<Err = Error> + PartialEq { fn relative_file_path() -> &'static Path; fn file_path<P: AsRef<Path>>(ucd_dir: P) -> PathBuf { ... } fn from_dir<P: AsRef<Path>>(
ucd_dir: P
) -> Result<UcdLineParser<File, Self>, Error> { ... } }
Describes a single UCD file.
Required Methods
fn relative_file_path() -> &'static Path
The file path corresponding to this file, relative to the UCD directory.
Provided Methods
fn file_path<P: AsRef<Path>>(ucd_dir: P) -> PathBuf
The full file path corresponding to this file given the UCD directory path.
fn from_dir<P: AsRef<Path>>(
ucd_dir: P
) -> Result<UcdLineParser<File, Self>, Error>
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.
Implementors
impl UcdFile for Ageimpl UcdFile for CaseFoldimpl UcdFile for CorePropertyimpl UcdFile for JamoShortNameimpl UcdFile for NameAliasimpl UcdFile for Propertyimpl UcdFile for PropertyAliasimpl UcdFile for PropertyValueAliasimpl UcdFile for ScriptExtensionimpl UcdFile for Scriptimpl UcdFile for SpecialCaseMappingimpl UcdFile for UnicodeData