Skip to main content

Pap

Struct Pap 

Source
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

Source

pub fn apply_papx(&mut self, grpprl: &[u8])

Source

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.

Source

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§

Source§

impl Clone for Pap

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Pap

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Pap

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.