[][src]Struct skribo::LayoutSession

pub struct LayoutSession<S: AsRef<str>> { /* fields omitted */ }

Methods

impl<S: AsRef<str>> LayoutSession<S>[src]

pub fn create(
    text: S,
    style: &TextStyle,
    collection: &FontCollection
) -> LayoutSession<S>
[src]

pub fn iter_all(&self) -> LayoutRangeIter[src]

Iterate through all glyphs in the layout.

Note: this is redundant with iter_substr with the whole string, might not keep it.

pub fn iter_substr(&mut self, range: Range<usize>) -> LayoutRangeIter[src]

Iterate through the glyphs in the layout of the substring.

This method reuses as much of the original layout as practical, almost entirely reusing the itemization, but possibly doing re-layout.

Auto Trait Implementations

impl<S> RefUnwindSafe for LayoutSession<S> where
    S: RefUnwindSafe

impl<S> !Send for LayoutSession<S>

impl<S> !Sync for LayoutSession<S>

impl<S> Unpin for LayoutSession<S> where
    S: Unpin

impl<S> UnwindSafe for LayoutSession<S> where
    S: UnwindSafe

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, 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.