ISpRecoGrammarVtbl

Struct ISpRecoGrammarVtbl 

Source
#[repr(C)]
pub struct ISpRecoGrammarVtbl {
Show 19 fields pub parent: ISpGrammarBuilderVtbl, pub GetGrammarId: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pullGrammarId: *mut ULONGLONG) -> HRESULT, pub GetRecoContext: unsafe extern "system" fn(This: *mut ISpRecoGrammar, ppRecoCtxt: *mut *mut ISpRecoContext) -> HRESULT, pub LoadCmdFromFile: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszFileName: LPCWSTR, Options: SPLOADOPTIONS) -> HRESULT, pub LoadCmdFromObject: unsafe extern "system" fn(This: *mut ISpRecoGrammar, rcid: REFCLSID, pszGrammarName: LPCWSTR, Options: SPLOADOPTIONS) -> HRESULT, pub LoadCmdFromResource: unsafe extern "system" fn(This: *mut ISpRecoGrammar, hModule: HMODULE, pszResourceName: LPCWSTR, pszResourceType: LPCWSTR, wLanguage: WORD, Options: SPLOADOPTIONS) -> HRESULT, pub LoadCmdFromMemory: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pGrammar: *const SPBINARYGRAMMAR, Options: SPLOADOPTIONS) -> HRESULT, pub LoadCmdFromProprietaryGrammar: unsafe extern "system" fn(This: *mut ISpRecoGrammar, rguidParam: REFGUID, pszStringParam: LPCWSTR, pvDataPrarm: *const c_void, cbDataSize: ULONG, Options: SPLOADOPTIONS) -> HRESULT, pub SetRuleState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszName: LPCWSTR, pReserved: *mut c_void, NewState: SPRULESTATE) -> HRESULT, pub SetRuleIdState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, ulRuleId: ULONG, NewState: SPRULESTATE) -> HRESULT, pub LoadDictation: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszTopicName: LPCWSTR, Options: SPLOADOPTIONS) -> HRESULT, pub UnloadDictation: unsafe extern "system" fn(This: *mut ISpRecoGrammar) -> HRESULT, pub SetDictationState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, NewState: SPRULESTATE) -> HRESULT, pub SetWordSequenceData: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pText: *const WCHAR, cchText: ULONG, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT, pub SetTextSelection: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT, pub IsPronounceable: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszWord: LPCWSTR, pWordPronounceable: *mut SPWORDPRONOUNCEABLE) -> HRESULT, pub SetGrammarState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, eGrammarState: SPGRAMMARSTATE) -> HRESULT, pub SaveCmd: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pStream: *mut IStream, ppszCoMemErrorText: *mut LPWSTR) -> HRESULT, pub GetGrammarState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, peGrammarState: *mut SPGRAMMARSTATE) -> HRESULT,
}

Fields§

§parent: ISpGrammarBuilderVtbl§GetGrammarId: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pullGrammarId: *mut ULONGLONG) -> HRESULT§GetRecoContext: unsafe extern "system" fn(This: *mut ISpRecoGrammar, ppRecoCtxt: *mut *mut ISpRecoContext) -> HRESULT§LoadCmdFromFile: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszFileName: LPCWSTR, Options: SPLOADOPTIONS) -> HRESULT§LoadCmdFromObject: unsafe extern "system" fn(This: *mut ISpRecoGrammar, rcid: REFCLSID, pszGrammarName: LPCWSTR, Options: SPLOADOPTIONS) -> HRESULT§LoadCmdFromResource: unsafe extern "system" fn(This: *mut ISpRecoGrammar, hModule: HMODULE, pszResourceName: LPCWSTR, pszResourceType: LPCWSTR, wLanguage: WORD, Options: SPLOADOPTIONS) -> HRESULT§LoadCmdFromMemory: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pGrammar: *const SPBINARYGRAMMAR, Options: SPLOADOPTIONS) -> HRESULT§LoadCmdFromProprietaryGrammar: unsafe extern "system" fn(This: *mut ISpRecoGrammar, rguidParam: REFGUID, pszStringParam: LPCWSTR, pvDataPrarm: *const c_void, cbDataSize: ULONG, Options: SPLOADOPTIONS) -> HRESULT§SetRuleState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszName: LPCWSTR, pReserved: *mut c_void, NewState: SPRULESTATE) -> HRESULT§SetRuleIdState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, ulRuleId: ULONG, NewState: SPRULESTATE) -> HRESULT§LoadDictation: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszTopicName: LPCWSTR, Options: SPLOADOPTIONS) -> HRESULT§UnloadDictation: unsafe extern "system" fn(This: *mut ISpRecoGrammar) -> HRESULT§SetDictationState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, NewState: SPRULESTATE) -> HRESULT§SetWordSequenceData: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pText: *const WCHAR, cchText: ULONG, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT§SetTextSelection: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT§IsPronounceable: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pszWord: LPCWSTR, pWordPronounceable: *mut SPWORDPRONOUNCEABLE) -> HRESULT§SetGrammarState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, eGrammarState: SPGRAMMARSTATE) -> HRESULT§SaveCmd: unsafe extern "system" fn(This: *mut ISpRecoGrammar, pStream: *mut IStream, ppszCoMemErrorText: *mut LPWSTR) -> HRESULT§GetGrammarState: unsafe extern "system" fn(This: *mut ISpRecoGrammar, peGrammarState: *mut SPGRAMMARSTATE) -> HRESULT

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.