Struct docx_reader::Run
source · 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_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_image(self, pic: Pic) -> Run
pub fn add_break(self, break_type: BreakType) -> 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 color(self, color: impl Into<String>) -> Run
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 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
Trait Implementations§
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 RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin 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