Struct divvunspell::speller::HfstSpeller [−][src]
pub struct HfstSpeller<F, T, U> where
F: File,
T: Transducer<F>,
U: Transducer<F>, { /* fields omitted */ }
Implementations
impl<F, T, U> HfstSpeller<F, T, U> where
F: File,
T: Transducer<F>,
U: Transducer<F>,
[src]
F: File,
T: Transducer<F>,
U: Transducer<F>,
pub fn new(mutator: T, lexicon: U) -> Arc<HfstSpeller<F, T, U>>
[src]
pub fn mutator(&self) -> &T
[src]
pub fn lexicon(&self) -> &U
[src]
Trait Implementations
impl<F: Debug, T: Debug, U: Debug> Debug for HfstSpeller<F, T, U> where
F: File,
T: Transducer<F>,
U: Transducer<F>,
[src]
F: File,
T: Transducer<F>,
U: Transducer<F>,
impl<F, T, U> Speller for HfstSpeller<F, T, U> where
F: File + Send,
T: Transducer<F> + Send,
U: Transducer<F> + Send,
[src]
F: File + Send,
T: Transducer<F> + Send,
U: Transducer<F> + Send,
fn is_correct(self: Arc<Self>, word: &str) -> bool
[src]
fn suggest(self: Arc<Self>, word: &str) -> Vec<Suggestion>
[src]
fn suggest_with_config(
self: Arc<Self>,
word: &str,
config: &SpellerConfig
) -> Vec<Suggestion>
[src]
self: Arc<Self>,
word: &str,
config: &SpellerConfig
) -> Vec<Suggestion>
Auto Trait Implementations
impl<F, T, U> RefUnwindSafe for HfstSpeller<F, T, U> where
F: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<F, T, U> Send for HfstSpeller<F, T, U> where
F: Send,
T: Send,
U: Send,
F: Send,
T: Send,
U: Send,
impl<F, T, U> Sync for HfstSpeller<F, T, U> where
F: Sync,
T: Sync,
U: Sync,
F: Sync,
T: Sync,
U: Sync,
impl<F, T, U> Unpin for HfstSpeller<F, T, U> where
F: Unpin,
T: Unpin,
U: Unpin,
F: Unpin,
T: Unpin,
U: Unpin,
impl<F, T, U> UnwindSafe for HfstSpeller<F, T, U> where
F: UnwindSafe,
T: UnwindSafe,
U: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,