pub struct Words {
pub items: Vec<Word>,
pub internal_str: String,
pub internal_chars: Vec<char>,
}
Expand description
Text broken up into Tab
, Word()
, Return
characters
Fields§
§items: Vec<Word>
Words (and spaces), broken up into semantic items
internal_str: String
String that makes up this paragraph of words
internal_chars: Vec<char>
internal_chars
is used in order to enable copy-paste (since taking a sub-string isn’t possible using UTF-8)
Implementations§
Trait Implementations§
Source§impl Ord for Words
impl Ord for Words
Source§impl PartialOrd for Words
impl PartialOrd for Words
impl Eq for Words
impl StructuralPartialEq for Words
Auto Trait Implementations§
impl Freeze for Words
impl RefUnwindSafe for Words
impl Send for Words
impl Sync for Words
impl Unpin for Words
impl UnwindSafe for Words
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)