pub struct TextSpan {
pub text: String,
pub family: Option<String>,
pub size: Option<f64>,
pub weight: Option<f64>,
pub italic: Option<bool>,
}Expand description
A run of text with its own style; unset fields inherit the base style.
Fields§
§text: StringThe text.
family: Option<String>Font family.
size: Option<f64>Font size in pixels.
weight: Option<f64>Weight, 100..=900.
italic: Option<bool>Italic style.
Trait Implementations§
impl StructuralPartialEq for TextSpan
Auto Trait Implementations§
impl Freeze for TextSpan
impl RefUnwindSafe for TextSpan
impl Send for TextSpan
impl Sync for TextSpan
impl Unpin for TextSpan
impl UnsafeUnpin for TextSpan
impl UnwindSafe for TextSpan
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