Struct dim_extern_api::filename::Anitomy
pub struct Anitomy { /* private fields */ }
Expand description
An Anitomy parser instance.
Implementations§
§impl Anitomy
impl Anitomy
pub fn parse<S>(&mut self, filename: S) -> Result<Elements, Elements>where
S: AsRef<str>,
pub fn parse<S>(&mut self, filename: S) -> Result<Elements, Elements>where
S: AsRef<str>,
Parses a filename.
The Ok
and Err
variants correspond to what Anitomy classifies as succeeding or failing in parsing a filename.
Such as an AnimeTitle
element being found.
Regardless the parsed elements are returned either way.
pub fn set_options(&mut self, options: &Options)
pub fn set_options(&mut self, options: &Options)
Sets the options to be used by Anitomy when parsing filenames.