pub struct Anitomy { /* private fields */ }
Expand description
An Anitomy parser instance.
Implementations
sourceimpl Anitomy
impl Anitomy
sourcepub fn parse<S: AsRef<str>>(&mut self, filename: S) -> Result<Elements, Elements>
pub fn parse<S: AsRef<str>>(&mut self, filename: S) -> Result<Elements, Elements>
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.
sourcepub 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Anitomy
impl !Send for Anitomy
impl !Sync for Anitomy
impl Unpin for Anitomy
impl UnwindSafe for Anitomy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more