pub struct AtlasTextEngine {
font: Font,
}Expand description
Fields§
§font: FontImplementations§
Source§impl AtlasTextEngine
impl AtlasTextEngine
Sourcepub fn layout_concrete(&self, text: &WispText) -> AtlasTextLayout
pub fn layout_concrete(&self, text: &WispText) -> AtlasTextLayout
Layout text into a concrete AtlasTextLayout. The trait
version (<Self as WispTextEngine>::layout) boxes this for
dyn dispatch; this method preserves the concrete type so the
renderer side can read glyphs() directly without downcasting.
Trait Implementations§
Source§impl Clone for AtlasTextEngine
impl Clone for AtlasTextEngine
Source§fn clone(&self) -> AtlasTextEngine
fn clone(&self) -> AtlasTextEngine
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 AtlasTextEngine
impl Debug for AtlasTextEngine
Source§impl WispTextEngine for AtlasTextEngine
impl WispTextEngine for AtlasTextEngine
Auto Trait Implementations§
impl Freeze for AtlasTextEngine
impl !RefUnwindSafe for AtlasTextEngine
impl Send for AtlasTextEngine
impl Sync for AtlasTextEngine
impl Unpin for AtlasTextEngine
impl UnsafeUnpin for AtlasTextEngine
impl !UnwindSafe for AtlasTextEngine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more