Skip to main content

DebugCheck

Enum DebugCheck 

Source
pub enum DebugCheck {
Show 18 variants Orphans, Fields, Bookmarks, Package, Structure, Ids, Styles, Chains, Elements, Textbox, Text, Xml, Runs, Changes, Tables, Styledefs, Numbering, Render,
}
Expand description

jubarte debug --check.

Variants§

§

Orphans

Deleted text outside its story’s w:del; live text inside one; bare runs in a text box whose anchor is deleted.

§

Fields

Field nesting per story; fields partly deleted.

§

Bookmarks

Duplicate/unpaired bookmarks; start and end in different sdt, cell, text box or revision; bookmarks in plain-text or list controls.

§

Package

Content types, relationship ids and targets, dangling note/comment references, undeclared mc:Ignorable prefixes.

§

Structure

Empty field codes, cells not ending in a paragraph, rows without cells, nested same-kind revisions, a body sectPr that is not last.

§

Ids

Revision and docPr ids used twice (not in the default triage: Word opens such files).

§

Styles

Style links and references naming no style; two styles with one type and name (Word pairs styles by name).

§

Chains

Where bookmark starts and ends sit (parent chains, tallied).

§

Elements

Element counts.

§

Textbox

Text box stories as XML (see –grep).

§

Text

Paragraph text per story part, with {+inserted+} / [-deleted-] runs and the mark state; with two files, the lines that differ.

§

Xml

Part XML one element per line, without namespace declarations, rsids or paraIds; with two files, the lines that differ.

§

Runs

text with each paragraph’s direct properties [..], its mark’s «..» and each run’s direct formatting «..»; with two files, the lines that differ.

§

Changes

Property-change records (pPrChange, tcPrChange, sectPrChange, …): where each sits and what the live properties add (+) and drop (-) against the recorded ones; with two files, the lines that differ.

§

Tables

Tables per story part: the grid (and a tblGridChange’s old grid), each row’s mark, gridBefore/gridAfter and trPrChange, each cell’s mark (cellIns +, cellDel -, cellMerge ~), span, width and vMerge with a tcPrChange’s old ones, and its paragraphs as text shows them; with two files, the lines that differ.

§

Styledefs

Style definitions by type and name (localized ids pair): docDefaults, then each style’s default flag and basedOn/link by name, and a line per pPr/rPr/tblPr/… block; with two files, the lines that differ.

§

Numbering

List levels by numId and level as paragraphs see them (abstract definition plus the list’s overrides; abstract ids renumber, so they are left out); with two files, the lines that differ.

§

Render

What each story part should put on the page (tables with style, float and shading; shaded, highlighted, coloured and hidden text; fonts; fields; ins/del order; frames; sections), and “(layout)”: jubarte’s page count and the face each font resolved to; with two files, the lines that differ.

Trait Implementations§

Source§

impl Clone for DebugCheck

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 Copy for DebugCheck

Source§

impl Debug for DebugCheck

Source§

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

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

impl Eq for DebugCheck

Source§

impl From<DebugCheck> for Check

Source§

fn from(c: DebugCheck) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DebugCheck

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 Serialize for DebugCheck

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for DebugCheck

Source§

impl ValueEnum for DebugCheck

Source§

fn value_variants<'a>() -> &'a [Self]

All possible argument values, in display order.
Source§

fn to_possible_value<'a>(&self) -> Option<PossibleValue>

The canonical argument value. Read more
Source§

fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

Parse an argument into Self.

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.