pub struct Run {
pub properties: Option<RunProperties>,
pub content: Vec<RunContent>,
pub unknown_attrs: Vec<(String, String)>,
pub unknown_children: Vec<RawXmlNode>,
}Expand description
Run element (w:r)
Fields§
§properties: Option<RunProperties>Run properties
content: Vec<RunContent>Run content
unknown_attrs: Vec<(String, String)>Unknown attributes (preserved)
unknown_children: Vec<RawXmlNode>Unknown children (preserved)
Implementations§
Source§impl Run
impl Run
Sourcepub fn from_reader<R: BufRead>(
reader: &mut Reader<R>,
start: &BytesStart<'_>,
) -> Result<Self>
pub fn from_reader<R: BufRead>( reader: &mut Reader<R>, start: &BytesStart<'_>, ) -> Result<Self>
Parse from reader (after w:r start tag)
Sourcepub fn from_empty(start: &BytesStart<'_>) -> Result<Self>
pub fn from_empty(start: &BytesStart<'_>) -> Result<Self>
Create from empty element
Sourcepub fn font_size_pt(&self) -> Option<f32>
pub fn font_size_pt(&self) -> Option<f32>
Get font size in points (None if not specified)
Sourcepub fn set_italic(&mut self, italic: bool)
pub fn set_italic(&mut self, italic: bool)
Set italic
Sourcepub fn set_font_size_pt(&mut self, size: f32)
pub fn set_font_size_pt(&mut self, size: f32)
Set font size in points
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Run
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