pub struct RichTextSpan {
pub text: String,
pub font_size: Option<f64>,
pub font_family: Option<String>,
pub font_weight: Option<String>,
pub font_style: Option<String>,
pub text_color: Option<(u8, u8, u8)>,
pub underline: bool,
pub line_through: bool,
}Expand description
A span of rich text with per-span style overrides.
XFA Spec 3.3 §4.2.7 (p155) — <exData contentType="text/html"> stores
XHTML content with inline CSS. Each span carries its own formatting
(font, color, weight, etc.) that overrides the node-level defaults.
Fields§
§text: String§font_size: Option<f64>§font_family: Option<String>§font_weight: Option<String>§font_style: Option<String>§text_color: Option<(u8, u8, u8)>§underline: bool§line_through: boolTrait Implementations§
Source§impl Clone for RichTextSpan
impl Clone for RichTextSpan
Source§fn clone(&self) -> RichTextSpan
fn clone(&self) -> RichTextSpan
Returns a duplicate of the value. Read more
1.0.0 · 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 RichTextSpan
impl Debug for RichTextSpan
Source§impl PartialEq for RichTextSpan
impl PartialEq for RichTextSpan
impl StructuralPartialEq for RichTextSpan
Auto Trait Implementations§
impl Freeze for RichTextSpan
impl RefUnwindSafe for RichTextSpan
impl Send for RichTextSpan
impl Sync for RichTextSpan
impl Unpin for RichTextSpan
impl UnsafeUnpin for RichTextSpan
impl UnwindSafe for RichTextSpan
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