pub struct RecognizerData { /* private fields */ }Implementations§
Source§impl RecognizerData
impl RecognizerData
pub fn new(grammar_file_name: impl Into<String>, vocabulary: Vocabulary) -> Self
pub fn with_rule_names( self, rule_names: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn with_channel_names( self, channel_names: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn with_mode_names( self, mode_names: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub const fn state(&self) -> isize
pub const fn set_state(&mut self, state: isize)
Trait Implementations§
Source§impl Clone for RecognizerData
impl Clone for RecognizerData
Source§fn clone(&self) -> RecognizerData
fn clone(&self) -> RecognizerData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecognizerData
impl RefUnwindSafe for RecognizerData
impl Send for RecognizerData
impl Sync for RecognizerData
impl Unpin for RecognizerData
impl UnsafeUnpin for RecognizerData
impl UnwindSafe for RecognizerData
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