pub struct DictionaryEntry { /* private fields */ }Expand description
Value-only dictionary entry; compiled automatons live outside gaze-types.
Implementations§
Source§impl DictionaryEntry
impl DictionaryEntry
Sourcepub fn new(
name: &str,
terms: Vec<String>,
case_sensitive: bool,
source: DictionarySource,
) -> Result<DictionaryEntry, DictionaryLoadError>
pub fn new( name: &str, terms: Vec<String>, case_sensitive: bool, source: DictionarySource, ) -> Result<DictionaryEntry, DictionaryLoadError>
Creates a validated value-only dictionary entry.
Sourcepub fn case_sensitive(&self) -> bool
pub fn case_sensitive(&self) -> bool
Returns whether matching is case-sensitive.
Trait Implementations§
Source§impl Clone for DictionaryEntry
impl Clone for DictionaryEntry
Source§fn clone(&self) -> DictionaryEntry
fn clone(&self) -> DictionaryEntry
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 DictionaryEntry
impl RefUnwindSafe for DictionaryEntry
impl Send for DictionaryEntry
impl Sync for DictionaryEntry
impl Unpin for DictionaryEntry
impl UnsafeUnpin for DictionaryEntry
impl UnwindSafe for DictionaryEntry
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