[−][src]Struct azul_text_layout::text_layout::Words
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
impl Words
[src]
pub fn get_substr(&self, word: &Word) -> String
[src]
pub fn get_str(&self) -> &str
[src]
pub fn get_char(&self, idx: usize) -> Option<char>
[src]
Trait Implementations
impl Clone for Words
[src]
impl Debug for Words
[src]
impl Eq for Words
[src]
impl Hash for Words
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Words
[src]
fn cmp(&self, other: &Words) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Words> for Words
[src]
impl PartialOrd<Words> for Words
[src]
fn partial_cmp(&self, other: &Words) -> Option<Ordering>
[src]
fn lt(&self, other: &Words) -> bool
[src]
fn le(&self, other: &Words) -> bool
[src]
fn gt(&self, other: &Words) -> bool
[src]
fn ge(&self, other: &Words) -> bool
[src]
impl StructuralEq for Words
[src]
impl StructuralPartialEq for Words
[src]
Auto Trait Implementations
impl RefUnwindSafe for Words
impl Send for Words
impl Sync for Words
impl Unpin for Words
impl UnwindSafe for Words
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,