pub struct RichRun {
pub text: String,
pub bold: bool,
pub italic: bool,
pub size: Option<u32>,
pub color: Option<u32>,
pub font: Option<String>,
}Expand description
富文本单元格中的单个格式化文本片段。
对应 Java: com.alibaba.excel.metadata.data.RichTextString 的运行片段
Fields§
§text: String文本内容。
bold: bool是否加粗。
italic: bool是否斜体。
size: Option<u32>字号(半磅为单位,如 24 = 12pt)。
color: Option<u32>RGB 颜色(如 0xFF0000 表示红色)。
font: Option<String>字体族名称。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RichRun
impl RefUnwindSafe for RichRun
impl Send for RichRun
impl Sync for RichRun
impl Unpin for RichRun
impl UnsafeUnpin for RichRun
impl UnwindSafe for RichRun
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