Skip to main content

RunIterator

Trait RunIterator 

pub trait RunIterator {
    // Required methods
    fn consume(&mut self);
    fn end_of_current_run(&self) -> usize;
    fn at_end(&self) -> bool;
}

Required Methods§

fn consume(&mut self)

Set state to that of current run and move iterator to end of that run.

fn end_of_current_run(&self) -> usize

Offset to one past the last (utf8) element in the current run.

fn at_end(&self) -> bool

Return true if RunIterator::consume() should no longer be called.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<T> RunIterator for RefHandle<T>
where T: NativeDelete + NativeBase<SkShaper_RunIterator>,