pub struct ShapeRequest {
pub text: String,
pub family: String,
pub style: Option<String>,
pub weight: Option<i32>,
pub language: Option<String>,
pub mode: ShapingMode,
pub font_size: Option<f32>,
}Fields§
§text: String§family: String§style: Option<String>§weight: Option<i32>§language: Option<String>§mode: ShapingMode§font_size: Option<f32>Implementations§
Source§impl ShapeRequest
impl ShapeRequest
pub fn new(text: impl Into<String>, family: impl Into<String>) -> Self
pub fn with_style(self, style: impl Into<String>) -> Self
pub fn with_weight(self, weight: i32) -> Self
pub fn with_optional_weight(self, weight: Option<i32>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_mode(self, mode: ShapingMode) -> Self
pub fn with_font_size(self, font_size: f32) -> Self
Trait Implementations§
Source§impl Clone for ShapeRequest
impl Clone for ShapeRequest
Source§fn clone(&self) -> ShapeRequest
fn clone(&self) -> ShapeRequest
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 ShapeRequest
impl Debug for ShapeRequest
Source§impl PartialEq for ShapeRequest
impl PartialEq for ShapeRequest
Source§fn eq(&self, other: &ShapeRequest) -> bool
fn eq(&self, other: &ShapeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShapeRequest
Auto Trait Implementations§
impl Freeze for ShapeRequest
impl RefUnwindSafe for ShapeRequest
impl Send for ShapeRequest
impl Sync for ShapeRequest
impl Unpin for ShapeRequest
impl UnsafeUnpin for ShapeRequest
impl UnwindSafe for ShapeRequest
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