pub enum InputLanguage {
Automatic,
Defined(Language),
}
Expand description
Represents the languages that the text to translate shall use.
It can be either an automatic detection, or a predefined Language
.
Variants§
Trait Implementations§
Source§impl Clone for InputLanguage
impl Clone for InputLanguage
Source§fn clone(&self) -> InputLanguage
fn clone(&self) -> InputLanguage
Returns a copy 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 InputLanguage
impl Debug for InputLanguage
Source§impl Ord for InputLanguage
impl Ord for InputLanguage
Source§fn cmp(&self, other: &InputLanguage) -> Ordering
fn cmp(&self, other: &InputLanguage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InputLanguage
impl PartialEq for InputLanguage
Source§impl PartialOrd for InputLanguage
impl PartialOrd for InputLanguage
impl Copy for InputLanguage
impl Eq for InputLanguage
impl StructuralPartialEq for InputLanguage
Auto Trait Implementations§
impl Freeze for InputLanguage
impl RefUnwindSafe for InputLanguage
impl Send for InputLanguage
impl Sync for InputLanguage
impl Unpin for InputLanguage
impl UnwindSafe for InputLanguage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.