Struct windows::Win32::Media::Speech::ISpeechRecoGrammar
pub struct ISpeechRecoGrammar(/* private fields */);
Implementations§
§impl ISpeechRecoGrammar
impl ISpeechRecoGrammar
pub unsafe fn Id(&self) -> Result<VARIANT>
pub unsafe fn RecoContext(&self) -> Result<ISpeechRecoContext>
pub unsafe fn SetState(&self, state: SpeechGrammarState) -> Result<()>
pub unsafe fn State(&self) -> Result<SpeechGrammarState>
pub unsafe fn Rules(&self) -> Result<ISpeechGrammarRules>
pub unsafe fn Reset(&self, newlanguage: i32) -> Result<()>
pub unsafe fn CmdLoadFromFile<P0>(
&self,
filename: P0,
loadoption: SpeechLoadOption
) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn CmdLoadFromObject<P0, P1>( &self, classid: P0, grammarname: P1, loadoption: SpeechLoadOption ) -> Result<()>
pub unsafe fn CmdLoadFromResource<P0, P1>( &self, hmodule: i32, resourcename: P0, resourcetype: P1, languageid: i32, loadoption: SpeechLoadOption ) -> Result<()>
pub unsafe fn CmdLoadFromMemory<P0>(
&self,
grammardata: P0,
loadoption: SpeechLoadOption
) -> Result<()>where
P0: IntoParam<VARIANT>,
pub unsafe fn CmdLoadFromProprietaryGrammar<P0, P1, P2>( &self, proprietaryguid: P0, proprietarystring: P1, proprietarydata: P2, loadoption: SpeechLoadOption ) -> Result<()>
pub unsafe fn CmdSetRuleState<P0>(
&self,
name: P0,
state: SpeechRuleState
) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn CmdSetRuleIdState( &self, ruleid: i32, state: SpeechRuleState ) -> Result<()>
pub unsafe fn DictationLoad<P0>(
&self,
topicname: P0,
loadoption: SpeechLoadOption
) -> Result<()>where
P0: IntoParam<BSTR>,
pub unsafe fn DictationUnload(&self) -> Result<()>
pub unsafe fn DictationSetState(&self, state: SpeechRuleState) -> Result<()>
pub unsafe fn SetWordSequenceData<P0, P1>(
&self,
text: P0,
textlength: i32,
info: P1
) -> Result<()>where
P0: IntoParam<BSTR>,
P1: IntoParam<ISpeechTextSelectionInformation>,
pub unsafe fn SetTextSelection<P0>(&self, info: P0) -> Result<()>where
P0: IntoParam<ISpeechTextSelectionInformation>,
pub unsafe fn IsPronounceable<P0>(
&self,
word: P0
) -> Result<SpeechWordPronounceable>where
P0: IntoParam<BSTR>,
Trait Implementations§
§impl Clone for ISpeechRecoGrammar
impl Clone for ISpeechRecoGrammar
§fn clone(&self) -> ISpeechRecoGrammar
fn clone(&self) -> ISpeechRecoGrammar
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 more§impl Debug for ISpeechRecoGrammar
impl Debug for ISpeechRecoGrammar
§impl From<&ISpeechRecoGrammar> for &IDispatch
impl From<&ISpeechRecoGrammar> for &IDispatch
§fn from(value: &ISpeechRecoGrammar) -> Self
fn from(value: &ISpeechRecoGrammar) -> Self
Converts to this type from the input type.
§impl From<&ISpeechRecoGrammar> for &IUnknown
impl From<&ISpeechRecoGrammar> for &IUnknown
§fn from(value: &ISpeechRecoGrammar) -> Self
fn from(value: &ISpeechRecoGrammar) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecoGrammar> for IDispatch
impl From<ISpeechRecoGrammar> for IDispatch
§fn from(value: ISpeechRecoGrammar) -> Self
fn from(value: ISpeechRecoGrammar) -> Self
Converts to this type from the input type.
§impl From<ISpeechRecoGrammar> for IUnknown
impl From<ISpeechRecoGrammar> for IUnknown
§fn from(value: ISpeechRecoGrammar) -> Self
fn from(value: ISpeechRecoGrammar) -> Self
Converts to this type from the input type.
§impl Interface for ISpeechRecoGrammar
impl Interface for ISpeechRecoGrammar
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for ISpeechRecoGrammar
impl PartialEq for ISpeechRecoGrammar
§fn eq(&self, other: &ISpeechRecoGrammar) -> bool
fn eq(&self, other: &ISpeechRecoGrammar) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ISpeechRecoGrammar
impl StructuralPartialEq for ISpeechRecoGrammar
Auto Trait Implementations§
impl RefUnwindSafe for ISpeechRecoGrammar
impl !Send for ISpeechRecoGrammar
impl !Sync for ISpeechRecoGrammar
impl Unpin for ISpeechRecoGrammar
impl UnwindSafe for ISpeechRecoGrammar
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