#[non_exhaustive]pub enum RecognitionLevel {
Fast,
Accurate,
}Available on crate feature
recognize_text only.Expand description
Recognition strategy passed to Vision. Fast is real-time-friendly,
Accurate does layout analysis and is significantly slower.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for RecognitionLevel
impl Clone for RecognitionLevel
Source§fn clone(&self) -> RecognitionLevel
fn clone(&self) -> RecognitionLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecognitionLevel
impl Debug for RecognitionLevel
Source§impl Default for RecognitionLevel
impl Default for RecognitionLevel
Source§fn default() -> RecognitionLevel
fn default() -> RecognitionLevel
Returns the “default value” for a type. Read more
Source§impl Hash for RecognitionLevel
impl Hash for RecognitionLevel
Source§impl PartialEq for RecognitionLevel
impl PartialEq for RecognitionLevel
Source§fn eq(&self, other: &RecognitionLevel) -> bool
fn eq(&self, other: &RecognitionLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RecognitionLevel
impl Eq for RecognitionLevel
impl StructuralPartialEq for RecognitionLevel
Auto Trait Implementations§
impl Freeze for RecognitionLevel
impl RefUnwindSafe for RecognitionLevel
impl Send for RecognitionLevel
impl Sync for RecognitionLevel
impl Unpin for RecognitionLevel
impl UnsafeUnpin for RecognitionLevel
impl UnwindSafe for RecognitionLevel
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