Skip to main content

LogicalRuns

Struct LogicalRuns 

Source
pub struct LogicalRuns<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> LogicalRuns<'a>

Source

pub fn resolve( text: &str, bidi: &BidiText<'_>, typefaces: &[&dyn Typeface], output: &'a mut [LogicalRun], ) -> Result<Self, LayoutError>

Source

pub const fn text(&self) -> TextRange

Source

pub const fn runs(&self) -> &[LogicalRun]

Source

pub fn shape_into<'output>( &self, text: &str, typefaces: &[&dyn Typeface], features: &[FontFeature], glyphs: &'output mut [ShapedGlyph], runs: &'output mut [GlyphRun], ) -> Result<ShapedText<'output>, LayoutError>

Source

pub fn layout_into<'output>( &self, text: &str, typefaces: &[&dyn Typeface], features: &[FontFeature], broken: &BrokenLines<'_, '_>, options: LayoutOptions, buffers: LayoutBuffers<'output>, ) -> Result<ParagraphLayout<'output>, LayoutError>

Auto Trait Implementations§

§

impl<'a> Freeze for LogicalRuns<'a>

§

impl<'a> RefUnwindSafe for LogicalRuns<'a>

§

impl<'a> Send for LogicalRuns<'a>

§

impl<'a> Sync for LogicalRuns<'a>

§

impl<'a> Unpin for LogicalRuns<'a>

§

impl<'a> UnsafeUnpin for LogicalRuns<'a>

§

impl<'a> UnwindSafe for LogicalRuns<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.