pub struct TextLayoutRequest<'a> {Show 16 fields
pub text: &'a str,
pub bounds: UiRect,
pub font_height: f32,
pub font_weight: i32,
pub font_width: TextFontWidth,
pub font_slant: TextFontSlant,
pub font_families: &'a [&'a str],
pub locale: &'a str,
pub tracking: f32,
pub align: TextAlign,
pub direction: TextDirection,
pub max_lines: Option<usize>,
pub line_height: Option<f32>,
pub vertical_align: TextVerticalAlign,
pub features: &'a [TextFeature<'a>],
pub spans: &'a [TextSpan<'a>],
}Fields§
§text: &'a str§bounds: UiRect§font_height: f32§font_weight: i32§font_width: TextFontWidth§font_slant: TextFontSlant§font_families: &'a [&'a str]§locale: &'a str§tracking: f32§align: TextAlign§direction: TextDirection§max_lines: Option<usize>§line_height: Option<f32>§vertical_align: TextVerticalAlign§features: &'a [TextFeature<'a>]§spans: &'a [TextSpan<'a>]Implementations§
Source§impl<'a> TextLayoutRequest<'a>
impl<'a> TextLayoutRequest<'a>
Trait Implementations§
Source§impl<'a> Clone for TextLayoutRequest<'a>
impl<'a> Clone for TextLayoutRequest<'a>
Source§fn clone(&self) -> TextLayoutRequest<'a>
fn clone(&self) -> TextLayoutRequest<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for TextLayoutRequest<'a>
impl<'a> RefUnwindSafe for TextLayoutRequest<'a>
impl<'a> Send for TextLayoutRequest<'a>
impl<'a> Sync for TextLayoutRequest<'a>
impl<'a> Unpin for TextLayoutRequest<'a>
impl<'a> UnsafeUnpin for TextLayoutRequest<'a>
impl<'a> UnwindSafe for TextLayoutRequest<'a>
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