[][src]Struct azul_core::app_resources::Words

pub struct Words {
    pub items: Vec<Word>,
    pub internal_str: String,
    pub internal_chars: Vec<char>,
}

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]

impl Ord for Words[src]

impl PartialEq<Words> for Words[src]

impl PartialOrd<Words> for Words[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.