#[repr(transparent)]pub struct SFSpeechRecognitionTaskHint(pub NSInteger);Available on crate feature
SFSpeechRecognitionTaskHint only.Expand description
The type of task for which you are using speech recognition.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl SFSpeechRecognitionTaskHint
impl SFSpeechRecognitionTaskHint
Sourcepub const Unspecified: Self
pub const Unspecified: Self
An unspecified type of task.
Use this hint type when the intended use for captured speech does not match the other task types.
Sourcepub const Dictation: Self
pub const Dictation: Self
A task that uses captured speech for text entry.
Use this hint type when you are using speech recognition for a task that’s similar to the keyboard’s built-in dictation function.
Sourcepub const Search: Self
pub const Search: Self
A task that uses captured speech to specify search terms.
Use this hint type when you are using speech recognition to identify search terms.
Sourcepub const Confirmation: Self
pub const Confirmation: Self
A task that uses captured speech for short, confirmation-style requests.
Use this hint type when you are using speech recognition to handle confirmation commands, such as “yes,” “no,” or “maybe.”
Trait Implementations§
Source§impl Clone for SFSpeechRecognitionTaskHint
impl Clone for SFSpeechRecognitionTaskHint
Source§fn clone(&self) -> SFSpeechRecognitionTaskHint
fn clone(&self) -> SFSpeechRecognitionTaskHint
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 SFSpeechRecognitionTaskHint
impl Debug for SFSpeechRecognitionTaskHint
Source§impl Encode for SFSpeechRecognitionTaskHint
impl Encode for SFSpeechRecognitionTaskHint
Source§impl Hash for SFSpeechRecognitionTaskHint
impl Hash for SFSpeechRecognitionTaskHint
Source§impl Ord for SFSpeechRecognitionTaskHint
impl Ord for SFSpeechRecognitionTaskHint
Source§fn cmp(&self, other: &SFSpeechRecognitionTaskHint) -> Ordering
fn cmp(&self, other: &SFSpeechRecognitionTaskHint) -> 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 PartialOrd for SFSpeechRecognitionTaskHint
impl PartialOrd for SFSpeechRecognitionTaskHint
Source§impl RefEncode for SFSpeechRecognitionTaskHint
impl RefEncode for SFSpeechRecognitionTaskHint
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for SFSpeechRecognitionTaskHint
impl Eq for SFSpeechRecognitionTaskHint
impl StructuralPartialEq for SFSpeechRecognitionTaskHint
Auto Trait Implementations§
impl Freeze for SFSpeechRecognitionTaskHint
impl RefUnwindSafe for SFSpeechRecognitionTaskHint
impl Send for SFSpeechRecognitionTaskHint
impl Sync for SFSpeechRecognitionTaskHint
impl Unpin for SFSpeechRecognitionTaskHint
impl UnwindSafe for SFSpeechRecognitionTaskHint
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<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.