pub struct RichSpan {
pub text: String,
pub color: Option<Color>,
pub weight: Option<f64>,
pub italic: Option<bool>,
pub size: Option<f64>,
pub family: Option<String>,
}Expand description
A run of text with its own look; unset fields use the node’s style.
Fields§
§text: StringThe text of this run.
color: Option<Color>Color; default: the node’s fill.
weight: Option<f64>Font weight 100..=900; default: the node’s.
italic: Option<bool>Italic; default: the node’s.
size: Option<f64>Font size; default: the node’s.
family: Option<String>Font family; default: the node’s.
Implementations§
Trait Implementations§
Source§impl Lerp for RichSpan
Strings tween as a typewriter over the concatenated text, keeping the
styles of the target spans.
impl Lerp for RichSpan
Strings tween as a typewriter over the concatenated text, keeping the styles of the target spans.
impl StructuralPartialEq for RichSpan
Auto Trait Implementations§
impl Freeze for RichSpan
impl RefUnwindSafe for RichSpan
impl Send for RichSpan
impl Sync for RichSpan
impl Unpin for RichSpan
impl UnsafeUnpin for RichSpan
impl UnwindSafe for RichSpan
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