#[repr(C)]pub struct Words {
pub items: WordVec,
pub internal_str: AzString,
pub internal_chars: U32Vec,
}Expand description
Text broken up into Tab, Word(), Return characters
Fields§
§items: WordVecWords (and spaces), broken up into semantic items
internal_str: AzStringString that makes up this paragraph of words
internal_chars: U32Vecinternal_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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more