pub enum DetectorFactoryError {
DuplicatedLanguage(String),
NotEnoughProfiles,
}Expand description
Errors that can occur when working with DetectorFactory.
Variants§
DuplicatedLanguage(String)
Attempted to add a language profile that already exists.
NotEnoughProfiles
At least 2 languages are required for detection.
Trait Implementations§
Source§impl Clone for DetectorFactoryError
impl Clone for DetectorFactoryError
Source§fn clone(&self) -> DetectorFactoryError
fn clone(&self) -> DetectorFactoryError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectorFactoryError
impl Debug for DetectorFactoryError
Auto Trait Implementations§
impl Freeze for DetectorFactoryError
impl RefUnwindSafe for DetectorFactoryError
impl Send for DetectorFactoryError
impl Sync for DetectorFactoryError
impl Unpin for DetectorFactoryError
impl UnwindSafe for DetectorFactoryError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more