pub enum TextChunk {
Word(Vec<String>),
Raw(String),
}Expand description
Un élément de texte syllabifié : soit un mot décomposé en syllabes, soit du texte brut.
Retourné par crate::syllabify_text.
Variants§
Word(Vec<String>)
Un mot découpé en syllabes (ex : ["cho", "co", "lat"]).
Raw(String)
Texte brut conservé tel quel : espaces, ponctuation, chiffres…
Trait Implementations§
impl Eq for TextChunk
impl StructuralPartialEq for TextChunk
Auto Trait Implementations§
impl Freeze for TextChunk
impl RefUnwindSafe for TextChunk
impl Send for TextChunk
impl Sync for TextChunk
impl Unpin for TextChunk
impl UnsafeUnpin for TextChunk
impl UnwindSafe for TextChunk
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