Struct windows::Win32::Media::Speech::ISpeechGrammarRuleState
pub struct ISpeechGrammarRuleState(/* private fields */);
Implementations§
§impl ISpeechGrammarRuleState
impl ISpeechGrammarRuleState
pub unsafe fn Rule(&self) -> Result<ISpeechGrammarRule>
pub unsafe fn Transitions(&self) -> Result<ISpeechGrammarRuleStateTransitions>
pub unsafe fn AddWordTransition<P0, P1, P2, P3>(
&self,
deststate: P0,
words: P1,
separators: P2,
type: SpeechGrammarWordType,
propertyname: P3,
propertyid: i32,
propertyvalue: *const VARIANT,
weight: f32
) -> Result<()>where
P0: IntoParam<ISpeechGrammarRuleState>,
P1: IntoParam<BSTR>,
P2: IntoParam<BSTR>,
P3: IntoParam<BSTR>,
pub unsafe fn AddRuleTransition<P0, P1, P2>(
&self,
destinationstate: P0,
rule: P1,
propertyname: P2,
propertyid: i32,
propertyvalue: *const VARIANT,
weight: f32
) -> Result<()>where
P0: IntoParam<ISpeechGrammarRuleState>,
P1: IntoParam<ISpeechGrammarRule>,
P2: IntoParam<BSTR>,
pub unsafe fn AddSpecialTransition<P0, P1>(
&self,
destinationstate: P0,
type: SpeechSpecialTransitionType,
propertyname: P1,
propertyid: i32,
propertyvalue: *const VARIANT,
weight: f32
) -> Result<()>where
P0: IntoParam<ISpeechGrammarRuleState>,
P1: IntoParam<BSTR>,
Trait Implementations§
§impl Clone for ISpeechGrammarRuleState
impl Clone for ISpeechGrammarRuleState
§fn clone(&self) -> ISpeechGrammarRuleState
fn clone(&self) -> ISpeechGrammarRuleState
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 ISpeechGrammarRuleState
impl Debug for ISpeechGrammarRuleState
§impl From<&ISpeechGrammarRuleState> for &IDispatch
impl From<&ISpeechGrammarRuleState> for &IDispatch
§fn from(value: &ISpeechGrammarRuleState) -> Self
fn from(value: &ISpeechGrammarRuleState) -> Self
Converts to this type from the input type.
§impl From<&ISpeechGrammarRuleState> for &IUnknown
impl From<&ISpeechGrammarRuleState> for &IUnknown
§fn from(value: &ISpeechGrammarRuleState) -> Self
fn from(value: &ISpeechGrammarRuleState) -> Self
Converts to this type from the input type.
§impl From<ISpeechGrammarRuleState> for IDispatch
impl From<ISpeechGrammarRuleState> for IDispatch
§fn from(value: ISpeechGrammarRuleState) -> Self
fn from(value: ISpeechGrammarRuleState) -> Self
Converts to this type from the input type.
§impl From<ISpeechGrammarRuleState> for IUnknown
impl From<ISpeechGrammarRuleState> for IUnknown
§fn from(value: ISpeechGrammarRuleState) -> Self
fn from(value: ISpeechGrammarRuleState) -> Self
Converts to this type from the input type.
§impl Interface for ISpeechGrammarRuleState
impl Interface for ISpeechGrammarRuleState
§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 ISpeechGrammarRuleState
impl PartialEq for ISpeechGrammarRuleState
§fn eq(&self, other: &ISpeechGrammarRuleState) -> bool
fn eq(&self, other: &ISpeechGrammarRuleState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ISpeechGrammarRuleState
impl StructuralPartialEq for ISpeechGrammarRuleState
Auto Trait Implementations§
impl RefUnwindSafe for ISpeechGrammarRuleState
impl !Send for ISpeechGrammarRuleState
impl !Sync for ISpeechGrammarRuleState
impl Unpin for ISpeechGrammarRuleState
impl UnwindSafe for ISpeechGrammarRuleState
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