pub struct Run {
pub run_property: RunProperty,
pub children: Vec<RunChild>,
}Fields§
§run_property: RunProperty§children: Vec<RunChild>Implementations§
Source§impl Run
impl Run
pub fn new() -> Run
pub fn add_text(self, text: impl Into<String>) -> Run
pub fn add_delete_text(self, text: impl Into<String>) -> Run
pub fn add_field_char(self, t: FieldCharType, dirty: bool) -> Run
pub fn add_tc(self, tc: InstrTC) -> Run
pub fn add_instr_text(self, i: InstrText) -> Run
pub fn add_delete_instr_text(self, i: DeleteInstrText) -> Run
pub fn add_tab(self) -> Run
pub fn add_ptab(self, ptab: PositionalTab) -> Run
pub fn add_image(self, pic: Pic) -> Run
pub fn add_break(self, break_type: BreakType) -> Run
pub fn add_carriage_return(self) -> Run
pub fn add_sym(self, sym: Sym) -> Run
pub fn style(self, style_id: &str) -> Self
pub fn size(self, size: usize) -> Run
pub fn character_spacing(self, v: i32) -> Run
pub fn stretch(self, v: i32) -> Run
pub fn color(self, color: impl Into<String>) -> Run
Sourcepub fn theme_color(self, theme_color: ThemeColor) -> Run
pub fn theme_color(self, theme_color: ThemeColor) -> Run
Sets the theme color reference (w:themeColor) on the run color.
Sourcepub fn theme_shade(self, theme_shade: impl Into<String>) -> Run
pub fn theme_shade(self, theme_shade: impl Into<String>) -> Run
Sets the theme shade modifier (w:themeShade) on the run color.
Sourcepub fn theme_tint(self, theme_tint: impl Into<String>) -> Run
pub fn theme_tint(self, theme_tint: impl Into<String>) -> Run
Sets the theme tint modifier (w:themeTint) on the run color.
pub fn highlight(self, color: impl Into<String>) -> Run
pub fn bold(self) -> Run
pub fn disable_bold(self) -> Run
pub fn italic(self) -> Run
pub fn strike(self) -> Run
pub fn dstrike(self) -> Run
pub fn text_border(self, b: TextBorder) -> Run
pub fn disable_italic(self) -> Run
pub fn underline(self, line_type: impl Into<String>) -> Run
pub fn vanish(self) -> Run
pub fn fonts(self, f: RunFonts) -> Run
pub fn add_footnote_reference(self, footnote: Footnote) -> Run
pub fn shading(self, shading: Shading) -> Run
Trait Implementations§
impl BuildXML for Run
Source§impl ElementReader for Run
impl ElementReader for Run
fn read<R: Read>( r: &mut EventReader<R>, _attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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