Struct ISpGrammarBuilder
pub struct ISpGrammarBuilder(/* private fields */);
Implementations§
§impl ISpGrammarBuilder
impl ISpGrammarBuilder
pub unsafe fn ResetGrammar(&self, newlanguage: u16) -> Result<()>
pub unsafe fn GetRule<P0>(
&self,
pszrulename: P0,
dwruleid: u32,
dwattributes: u32,
fcreateifnotexist: bool,
phinitialstate: *mut SPSTATEHANDLE,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn ClearRule(&self, hstate: SPSTATEHANDLE) -> Result<()>
pub unsafe fn CreateNewState( &self, hstate: SPSTATEHANDLE, phstate: *mut SPSTATEHANDLE, ) -> Result<()>
pub unsafe fn AddWordTransition<P2, P3>(
&self,
hfromstate: SPSTATEHANDLE,
htostate: SPSTATEHANDLE,
psz: P2,
pszseparators: P3,
ewordtype: SPGRAMMARWORDTYPE,
weight: f32,
ppropinfo: *const SPPROPERTYINFO,
) -> Result<()>where
P2: Param<PCWSTR>,
P3: Param<PCWSTR>,
pub unsafe fn AddRuleTransition( &self, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, hrule: SPSTATEHANDLE, weight: f32, ppropinfo: *const SPPROPERTYINFO, ) -> Result<()>
pub unsafe fn AddResource<P1, P2>(
&self,
hrulestate: SPSTATEHANDLE,
pszresourcename: P1,
pszresourcevalue: P2,
) -> Result<()>where
P1: Param<PCWSTR>,
P2: Param<PCWSTR>,
pub unsafe fn Commit(&self, dwreserved: u32) -> Result<()>
Trait Implementations§
§impl CanInto<ISpGrammarBuilder> for ISpGramCompBackend
impl CanInto<ISpGrammarBuilder> for ISpGramCompBackend
§impl CanInto<ISpGrammarBuilder> for ISpRecoGrammar
impl CanInto<ISpGrammarBuilder> for ISpRecoGrammar
§impl CanInto<IUnknown> for ISpGrammarBuilder
impl CanInto<IUnknown> for ISpGrammarBuilder
§impl Clone for ISpGrammarBuilder
impl Clone for ISpGrammarBuilder
§fn clone(&self) -> ISpGrammarBuilder
fn clone(&self) -> ISpGrammarBuilder
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 ISpGrammarBuilder
impl Debug for ISpGrammarBuilder
§impl From<&ISpGramCompBackend> for &ISpGrammarBuilder
impl From<&ISpGramCompBackend> for &ISpGrammarBuilder
§fn from(value: &ISpGramCompBackend) -> Self
fn from(value: &ISpGramCompBackend) -> Self
Converts to this type from the input type.
§impl From<&ISpGrammarBuilder> for &IUnknown
impl From<&ISpGrammarBuilder> for &IUnknown
§fn from(value: &ISpGrammarBuilder) -> Self
fn from(value: &ISpGrammarBuilder) -> Self
Converts to this type from the input type.
§impl From<&ISpRecoGrammar> for &ISpGrammarBuilder
impl From<&ISpRecoGrammar> for &ISpGrammarBuilder
§fn from(value: &ISpRecoGrammar) -> Self
fn from(value: &ISpRecoGrammar) -> Self
Converts to this type from the input type.
§impl From<ISpGramCompBackend> for ISpGrammarBuilder
impl From<ISpGramCompBackend> for ISpGrammarBuilder
§fn from(value: ISpGramCompBackend) -> Self
fn from(value: ISpGramCompBackend) -> Self
Converts to this type from the input type.
§impl From<ISpGrammarBuilder> for IUnknown
impl From<ISpGrammarBuilder> for IUnknown
§fn from(value: ISpGrammarBuilder) -> Self
fn from(value: ISpGrammarBuilder) -> Self
Converts to this type from the input type.
§impl From<ISpRecoGrammar> for ISpGrammarBuilder
impl From<ISpRecoGrammar> for ISpGrammarBuilder
§fn from(value: ISpRecoGrammar) -> Self
fn from(value: ISpRecoGrammar) -> Self
Converts to this type from the input type.
§impl Interface for ISpGrammarBuilder
impl Interface for ISpGrammarBuilder
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ISpGrammarBuilder
impl PartialEq for ISpGrammarBuilder
impl Eq for ISpGrammarBuilder
impl StructuralPartialEq for ISpGrammarBuilder
Auto Trait Implementations§
impl Freeze for ISpGrammarBuilder
impl RefUnwindSafe for ISpGrammarBuilder
impl !Send for ISpGrammarBuilder
impl !Sync for ISpGrammarBuilder
impl Unpin for ISpGrammarBuilder
impl UnwindSafe for ISpGrammarBuilder
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