pub struct TextEngine { /* private fields */ }Implementations§
Source§impl TextEngine
impl TextEngine
pub fn new(config: TextEngineConfig) -> Self
pub fn config(&self) -> &TextEngineConfig
pub fn layout( &self, attributed: &AttributedString, container: &TextContainer, font_store: Option<&FontStore>, ) -> Result<TextLayout>
pub fn layout_text_block( &self, block: &TextBlock, container: &TextContainer, font_store: Option<&FontStore>, ) -> Result<TextLayout>
Trait Implementations§
Source§impl Clone for TextEngine
impl Clone for TextEngine
Source§fn clone(&self) -> TextEngine
fn clone(&self) -> TextEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextEngine
impl Debug for TextEngine
Source§impl Default for TextEngine
impl Default for TextEngine
Source§fn default() -> TextEngine
fn default() -> TextEngine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextEngine
impl RefUnwindSafe for TextEngine
impl Send for TextEngine
impl Sync for TextEngine
impl Unpin for TextEngine
impl UnsafeUnpin for TextEngine
impl UnwindSafe for TextEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more