pub struct CT_RegularTextRun {
pub properties: Option<CT_TextCharacterProperties>,
pub text: TextValue,
/* private fields */
}Expand description
A regular DrawingML run containing optional properties and required text.
Fields§
§properties: Option<CT_TextCharacterProperties>§text: TextValueImplementations§
Source§impl CT_RegularTextRun
impl CT_RegularTextRun
Sourcepub fn new(text: impl Into<String>) -> Self
pub fn new(text: impl Into<String>) -> Self
Creates a regular text run without direct character formatting.
Sourcepub fn set_text(&mut self, text: &str)
pub fn set_text(&mut self, text: &str)
Replaces the run text while retaining properties and unmodelled XML.
A character XML 1.0 cannot carry is stored as _xHHHH_, as
python-pptx stores it.
Trait Implementations§
Source§impl Clone for CT_RegularTextRun
impl Clone for CT_RegularTextRun
Source§impl Debug for CT_RegularTextRun
impl Debug for CT_RegularTextRun
impl Eq for CT_RegularTextRun
Auto Trait Implementations§
impl Freeze for CT_RegularTextRun
impl RefUnwindSafe for CT_RegularTextRun
impl Send for CT_RegularTextRun
impl Sync for CT_RegularTextRun
impl Unpin for CT_RegularTextRun
impl UnsafeUnpin for CT_RegularTextRun
impl UnwindSafe for CT_RegularTextRun
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