pub struct TextRasterRequest<'a> {
pub text: &'a str,
pub style: &'a PretextStyle,
pub direction: BidiDirection,
pub slot_height: f32,
pub padding_x: f32,
pub padding_y: f32,
pub slack_x: f32,
pub slack_y: f32,
pub baseline_mode: BaselineMode,
}Fields§
§text: &'a str§style: &'a PretextStyle§direction: BidiDirection§slot_height: f32§padding_x: f32§padding_y: f32§slack_x: f32§slack_y: f32§baseline_mode: BaselineModeImplementations§
Source§impl TextRasterRequest<'_>
impl TextRasterRequest<'_>
pub fn logical_size(&self, content_width: f32) -> LogicalSize
Trait Implementations§
Source§impl<'a> Clone for TextRasterRequest<'a>
impl<'a> Clone for TextRasterRequest<'a>
Source§fn clone(&self) -> TextRasterRequest<'a>
fn clone(&self) -> TextRasterRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TextRasterRequest<'a>
impl<'a> Debug for TextRasterRequest<'a>
impl<'a> Copy for TextRasterRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextRasterRequest<'a>
impl<'a> RefUnwindSafe for TextRasterRequest<'a>
impl<'a> Send for TextRasterRequest<'a>
impl<'a> Sync for TextRasterRequest<'a>
impl<'a> Unpin for TextRasterRequest<'a>
impl<'a> UnsafeUnpin for TextRasterRequest<'a>
impl<'a> UnwindSafe for TextRasterRequest<'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