Struct Text Options
pub struct TextOptions<'a> {
pub size: f64,
pub direction: TextDirection,
pub script: Option<[u8; 4]>,
pub language: Option<&'a str>,
pub features: &'a [TextFeature],
}Expand description
Single horizontal run options. Size is finite (0,1024] caller-selected units. Script may be guessed from the run; language is an optional ASCII alphanumeric/ hyphen tag of 1..63 bytes. This does not perform full BCP47 validation.
Fields§
§size: f64§direction: TextDirection§script: Option<[u8; 4]>§language: Option<&'a str>§features: &'a [TextFeature]Trait Implementations§
§impl<'a> Clone for TextOptions<'a>
impl<'a> Clone for TextOptions<'a>
§fn clone(&self) -> TextOptions<'a>
fn clone(&self) -> TextOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for TextOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextOptions<'a>
impl<'a> RefUnwindSafe for TextOptions<'a>
impl<'a> Send for TextOptions<'a>
impl<'a> Sync for TextOptions<'a>
impl<'a> Unpin for TextOptions<'a>
impl<'a> UnsafeUnpin for TextOptions<'a>
impl<'a> UnwindSafe for TextOptions<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more