Trait ISpGrammarBuilder_Impl
pub trait ISpGrammarBuilder_Impl: IUnknownImpl {
// Required methods
fn ResetGrammar(&self, newlanguage: u16) -> Result<()>;
fn GetRule(
&self,
pszrulename: &PCWSTR,
dwruleid: u32,
dwattributes: u32,
fcreateifnotexist: BOOL,
phinitialstate: *mut SPSTATEHANDLE,
) -> Result<()>;
fn ClearRule(&self, hstate: SPSTATEHANDLE) -> Result<()>;
fn CreateNewState(
&self,
hstate: SPSTATEHANDLE,
phstate: *mut SPSTATEHANDLE,
) -> Result<()>;
fn AddWordTransition(
&self,
hfromstate: SPSTATEHANDLE,
htostate: SPSTATEHANDLE,
psz: &PCWSTR,
pszseparators: &PCWSTR,
ewordtype: SPGRAMMARWORDTYPE,
weight: f32,
ppropinfo: *const SPPROPERTYINFO,
) -> Result<()>;
fn AddRuleTransition(
&self,
hfromstate: SPSTATEHANDLE,
htostate: SPSTATEHANDLE,
hrule: SPSTATEHANDLE,
weight: f32,
ppropinfo: *const SPPROPERTYINFO,
) -> Result<()>;
fn AddResource(
&self,
hrulestate: SPSTATEHANDLE,
pszresourcename: &PCWSTR,
pszresourcevalue: &PCWSTR,
) -> Result<()>;
fn Commit(&self, dwreserved: u32) -> Result<()>;
}
Required Methods§
fn ResetGrammar(&self, newlanguage: u16) -> Result<()>
fn GetRule( &self, pszrulename: &PCWSTR, dwruleid: u32, dwattributes: u32, fcreateifnotexist: BOOL, phinitialstate: *mut SPSTATEHANDLE, ) -> Result<()>
fn ClearRule(&self, hstate: SPSTATEHANDLE) -> Result<()>
fn CreateNewState( &self, hstate: SPSTATEHANDLE, phstate: *mut SPSTATEHANDLE, ) -> Result<()>
fn AddWordTransition( &self, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, psz: &PCWSTR, pszseparators: &PCWSTR, ewordtype: SPGRAMMARWORDTYPE, weight: f32, ppropinfo: *const SPPROPERTYINFO, ) -> Result<()>
fn AddRuleTransition( &self, hfromstate: SPSTATEHANDLE, htostate: SPSTATEHANDLE, hrule: SPSTATEHANDLE, weight: f32, ppropinfo: *const SPPROPERTYINFO, ) -> Result<()>
fn AddResource( &self, hrulestate: SPSTATEHANDLE, pszresourcename: &PCWSTR, pszresourcevalue: &PCWSTR, ) -> Result<()>
fn Commit(&self, dwreserved: u32) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.