pub struct Chp {Show 24 fields
pub istd: Option<u16>,
pub toggles: [Option<bool>; 10],
pub dstrike: Option<bool>,
pub kul: Option<u8>,
pub ico: Option<u8>,
pub cv: Option<[u8; 4]>,
pub hps: Option<u16>,
pub hps_pos: Option<i16>,
pub iss: Option<u8>,
pub ftc_ascii: Option<u16>,
pub ftc_fe: Option<u16>,
pub ftc_other: Option<u16>,
pub kern: Option<u16>,
pub dxa_space: Option<i16>,
pub char_scale: Option<u16>,
pub highlight: Option<u8>,
pub shd: Option<Shading>,
pub f_spec: bool,
pub deleted: bool,
pub f_obj: bool,
pub f_ole2: bool,
pub f_data: bool,
pub pic_location: Option<u32>,
pub symbol: Option<(u16, u16)>,
}Expand description
Character properties as OOXML-ready deltas; None everywhere means
“inherit from the referenced styles”.
Fields§
§istd: Option<u16>§toggles: [Option<bool>; 10]§dstrike: Option<bool>§kul: Option<u8>§ico: Option<u8>§cv: Option<[u8; 4]>§hps: Option<u16>§hps_pos: Option<i16>§iss: Option<u8>§ftc_ascii: Option<u16>§ftc_fe: Option<u16>§ftc_other: Option<u16>§kern: Option<u16>§dxa_space: Option<i16>§char_scale: Option<u16>§highlight: Option<u8>§shd: Option<Shading>§f_spec: bool§deleted: bool§f_obj: bool§f_ole2: bool§f_data: bool§pic_location: Option<u32>§symbol: Option<(u16, u16)>Implementations§
Source§impl Chp
impl Chp
Sourcepub fn apply_chpx(&mut self, grpprl: &[u8], base_toggles: &ToggleSet)
pub fn apply_chpx(&mut self, grpprl: &[u8], base_toggles: &ToggleSet)
Applies a CHPX grpprl. base_toggles carries the values the style sheet
produces for the current character or paragraph style, needed for
style-relative toggle operands.
pub fn apply_sprm(&mut self, sprm: &Sprm<'_>, base_toggles: &ToggleSet)
Sourcepub fn to_rpr_xml(
&self,
style_id: &impl Fn(u16) -> Option<String>,
font_name: &impl Fn(u16) -> Option<String>,
) -> String
pub fn to_rpr_xml( &self, style_id: &impl Fn(u16) -> Option<String>, font_name: &impl Fn(u16) -> Option<String>, ) -> String
Emits the <w:rPr> element for this run’s direct formatting, or an
empty string when there is nothing to emit. style_id resolves a
character-style istd to its OOXML styleId; font_name resolves an ftc
index into the font table.
Trait Implementations§
impl StructuralPartialEq for Chp
Auto Trait Implementations§
impl Freeze for Chp
impl RefUnwindSafe for Chp
impl Send for Chp
impl Sync for Chp
impl Unpin for Chp
impl UnsafeUnpin for Chp
impl UnwindSafe for Chp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more