pub struct Segmentation {
pub syllables: Vec<Syllable>,
}Expand description
A reading of the typed input as syllables, in input order.
Fields§
§syllables: Vec<Syllable>Implementations§
Source§impl Segmentation
impl Segmentation
Sourcepub fn texts<'a>(&'a self, input: &'a str) -> impl Iterator<Item = &'a str> + 'a
pub fn texts<'a>(&'a self, input: &'a str) -> impl Iterator<Item = &'a str> + 'a
The syllables’ letters out of input, the text this segmentation was made from.
Sourcepub fn key(&self, input: &str, count: usize) -> String
pub fn key(&self, input: &str, count: usize) -> String
The first count syllables joined by single spaces: the entries.key they are looked up by.
pub fn key_into(&self, input: &str, count: usize, key: &mut String)
Sourcepub fn end(&self) -> usize
pub fn end(&self) -> usize
Where the letters this segmentation reads end; zero when it reads none.
Sourcepub fn ends_in_prefix(&self) -> bool
pub fn ends_in_prefix(&self) -> bool
Whether the last syllable is an incomplete prefix.
Trait Implementations§
Source§impl Clone for Segmentation
impl Clone for Segmentation
Source§impl Debug for Segmentation
impl Debug for Segmentation
Source§impl Default for Segmentation
impl Default for Segmentation
impl Eq for Segmentation
Source§impl PartialEq for Segmentation
impl PartialEq for Segmentation
impl StructuralPartialEq for Segmentation
Auto Trait Implementations§
impl Freeze for Segmentation
impl RefUnwindSafe for Segmentation
impl Send for Segmentation
impl Sync for Segmentation
impl Unpin for Segmentation
impl UnsafeUnpin for Segmentation
impl UnwindSafe for Segmentation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.