pub struct Segmentation {
pub syllables: Vec<String>,
}Expand description
One valid segmentation of an input string.
Fields§
§syllables: Vec<String>Syllables in left-to-right order. Each is a substring of the input.
Implementations§
Trait Implementations§
Source§impl Clone for Segmentation
impl Clone for Segmentation
Source§fn clone(&self) -> Segmentation
fn clone(&self) -> Segmentation
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 moreSource§impl Debug for Segmentation
impl Debug for Segmentation
Source§impl PartialEq for Segmentation
impl PartialEq for Segmentation
Source§fn eq(&self, other: &Segmentation) -> bool
fn eq(&self, other: &Segmentation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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