pub struct TextNode {
pub text: String,
pub size: Animated<f64>,
pub align: TextAlign,
pub font: Option<String>,
pub tracking: Animated<f64>,
pub leading: Animated<f64>,
}Fields§
§text: String§size: Animated<f64>Em size in document units.
align: TextAlign§font: Option<String>Reserved for document-embedded fonts; None = bundled default.
tracking: Animated<f64>Letter spacing in document units (extra advance per glyph).
leading: Animated<f64>Additional line spacing in document units (added to default line height).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextNode
impl<'de> Deserialize<'de> for TextNode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextNode
impl RefUnwindSafe for TextNode
impl Send for TextNode
impl Sync for TextNode
impl Unpin for TextNode
impl UnsafeUnpin for TextNode
impl UnwindSafe for TextNode
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