[−][src]Struct skribo::LayoutSession
Methods
impl<S: AsRef<str>> LayoutSession<S>
[src]
pub fn create(
text: S,
style: &TextStyle,
collection: &FontCollection
) -> LayoutSession<S>
[src]
text: S,
style: &TextStyle,
collection: &FontCollection
) -> LayoutSession<S>
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,
S: RefUnwindSafe,
impl<S> !Send for LayoutSession<S>
impl<S> !Sync for LayoutSession<S>
impl<S> Unpin for LayoutSession<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for LayoutSession<S> where
S: UnwindSafe,
S: UnwindSafe,
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, 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>,