pub struct Pap {Show 33 fields
pub istd: u16,
pub jc: Option<u8>,
pub dxa_left: Option<i16>,
pub dxa_right: Option<i16>,
pub dxa_left1: Option<i16>,
pub dya_before: Option<u16>,
pub dya_after: Option<u16>,
pub before_auto: Option<bool>,
pub after_auto: Option<bool>,
pub lspd: Option<LineSpacing>,
pub contextual_spacing: Option<bool>,
pub f_keep: Option<bool>,
pub f_keep_follow: Option<bool>,
pub f_page_break_before: Option<bool>,
pub f_widow_control: Option<bool>,
pub ilvl: Option<u8>,
pub ilfo: Option<u16>,
pub outline_lvl: Option<u8>,
pub f_bidi: Option<bool>,
pub brc_top: Option<Border>,
pub brc_left: Option<Border>,
pub brc_bottom: Option<Border>,
pub brc_right: Option<Border>,
pub brc_between: Option<Border>,
pub shd: Option<Shading>,
pub tabs_deleted: Vec<i16>,
pub tabs_added: Vec<TabStop>,
pub f_in_table: bool,
pub f_ttp: bool,
pub itap: u32,
pub f_inner_table_cell: bool,
pub f_inner_ttp: bool,
pub table_grpprl: Vec<u8>,
}Fields§
§istd: u16§jc: Option<u8>§dxa_left: Option<i16>§dxa_right: Option<i16>§dxa_left1: Option<i16>§dya_before: Option<u16>§dya_after: Option<u16>§before_auto: Option<bool>§after_auto: Option<bool>§lspd: Option<LineSpacing>§contextual_spacing: Option<bool>§f_keep: Option<bool>§f_keep_follow: Option<bool>§f_page_break_before: Option<bool>§f_widow_control: Option<bool>§ilvl: Option<u8>§ilfo: Option<u16>§outline_lvl: Option<u8>§f_bidi: Option<bool>§brc_top: Option<Border>§brc_left: Option<Border>§brc_bottom: Option<Border>§brc_right: Option<Border>§brc_between: Option<Border>§shd: Option<Shading>§tabs_deleted: Vec<i16>§tabs_added: Vec<TabStop>§f_in_table: bool§f_ttp: bool§itap: u32§f_inner_table_cell: bool§f_inner_ttp: bool§table_grpprl: Vec<u8>Table sprms found in this paragraph’s grpprl (row-end paragraphs carry the row’s TAP definition).
Implementations§
Source§impl Pap
impl Pap
pub fn apply_papx(&mut self, grpprl: &[u8])
Sourcepub fn to_ppr_inner_xml(
&self,
style_id: &impl Fn(u16) -> Option<String>,
) -> String
pub fn to_ppr_inner_xml( &self, style_id: &impl Fn(u16) -> Option<String>, ) -> String
Emits the inner content of <w:pPr> (without numPr/sectPr, which the
document builder appends contextually). Returns “” when empty.
Sourcepub fn num_pr_xml(&self) -> Option<String>
pub fn num_pr_xml(&self) -> Option<String>
The w:numPr element when list formatting applies. ilfo 0 means “no list”; some writers use it to cancel inherited list membership.
Trait Implementations§
impl StructuralPartialEq for Pap
Auto Trait Implementations§
impl Freeze for Pap
impl RefUnwindSafe for Pap
impl Send for Pap
impl Sync for Pap
impl Unpin for Pap
impl UnsafeUnpin for Pap
impl UnwindSafe for Pap
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