pub struct RunProperty {Show 20 fields
pub style: Option<RunStyle>,
pub sz: Option<Sz>,
pub sz_cs: Option<SzCs>,
pub color: Option<Color>,
pub highlight: Option<Highlight>,
pub vert_align: Option<VertAlign>,
pub underline: Option<Underline>,
pub bold: Option<Bold>,
pub bold_cs: Option<BoldCs>,
pub caps: Option<Caps>,
pub italic: Option<Italic>,
pub italic_cs: Option<ItalicCs>,
pub vanish: Option<Vanish>,
pub spec_vanish: Option<SpecVanish>,
pub character_spacing: Option<CharacterSpacing>,
pub fonts: Option<RunFonts>,
pub text_border: Option<TextBorder>,
pub del: Option<Delete>,
pub ins: Option<Insert>,
pub strike: Option<Strike>,
}
Fields§
§style: Option<RunStyle>
§sz: Option<Sz>
§sz_cs: Option<SzCs>
§color: Option<Color>
§highlight: Option<Highlight>
§vert_align: Option<VertAlign>
§underline: Option<Underline>
§bold: Option<Bold>
§bold_cs: Option<BoldCs>
§caps: Option<Caps>
§italic: Option<Italic>
§italic_cs: Option<ItalicCs>
§vanish: Option<Vanish>
§spec_vanish: Option<SpecVanish>
§character_spacing: Option<CharacterSpacing>
§fonts: Option<RunFonts>
§text_border: Option<TextBorder>
§del: Option<Delete>
§ins: Option<Insert>
§strike: Option<Strike>
Implementations§
Source§impl RunProperty
impl RunProperty
pub fn new() -> RunProperty
pub fn style(self, style_id: &str) -> Self
pub fn size(self, size: usize) -> RunProperty
pub fn spacing(self, spacing: i32) -> RunProperty
pub fn color(self, color: impl Into<String>) -> RunProperty
pub fn highlight(self, color: impl Into<String>) -> RunProperty
pub fn vert_align(self, a: VertAlignType) -> Self
pub fn bold(self) -> RunProperty
pub fn disable_bold(self) -> RunProperty
pub fn caps(self) -> RunProperty
pub fn italic(self) -> RunProperty
pub fn strike(self) -> RunProperty
pub fn disable_italic(self) -> RunProperty
pub fn underline(self, line_type: impl Into<String>) -> RunProperty
pub fn vanish(self) -> RunProperty
pub fn spec_vanish(self) -> RunProperty
pub fn fonts(self, font: RunFonts) -> RunProperty
pub fn text_border(self, b: TextBorder) -> Self
pub fn delete(self, d: Delete) -> Self
pub fn insert(self, i: Insert) -> Self
Trait Implementations§
Source§impl Clone for RunProperty
impl Clone for RunProperty
Source§fn clone(&self) -> RunProperty
fn clone(&self) -> RunProperty
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RunProperty
impl Debug for RunProperty
Source§impl Default for RunProperty
impl Default for RunProperty
Source§fn default() -> RunProperty
fn default() -> RunProperty
Returns the “default value” for a type. Read more
Source§impl ElementReader for RunProperty
impl ElementReader for RunProperty
fn read<R: Read>( r: &mut EventReader<R>, _attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
Source§impl PartialEq for RunProperty
impl PartialEq for RunProperty
Source§impl Serialize for RunProperty
impl Serialize for RunProperty
impl StructuralPartialEq for RunProperty
Auto Trait Implementations§
impl Freeze for RunProperty
impl RefUnwindSafe for RunProperty
impl Send for RunProperty
impl Sync for RunProperty
impl Unpin for RunProperty
impl UnwindSafe for RunProperty
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