#[non_exhaustive]pub enum NamedFault {
Show 29 variants
MainPart(String),
TrackedChanges,
NoBlock(Address),
OutsideBody(Address),
WrongKind {
at: Address,
needs: &'static str,
},
NoElement(Address),
NoPrefix,
EmptyFind,
TextNotFound,
TextNotFoundOutsideEquations,
TextAmbiguous {
count: usize,
},
MatchCrossesElement {
element: &'static str,
},
MatchCrossesEdge {
element: &'static str,
},
MatchesOverlap {
other: usize,
},
BadCharacter(char),
SectionBreak,
NeedsParagraph,
LastRow,
RangeEnd {
element: &'static str,
},
NoSuchStyle {
style: String,
kind: &'static str,
near: Vec<String>,
},
NewXml(Error),
WrappedCells,
TooManyCells {
given: usize,
cells: usize,
},
MergedCellText {
cell: usize,
},
EmptyAuthor,
EmptyAlt,
ImageSize,
NoFreeId(&'static str),
Part {
part: String,
why: String,
},
}Expand description
What is wrong with a named edit, or with the file for all of them. Each message names the fix.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MainPart(String)
The package has no main document part, or it does not parse.
TrackedChanges
The main document part holds tracked changes, which a named edit does not make.
NoBlock(Address)
The file has no block or row at the address.
OutsideBody(Address)
The address names an element of a header, a footer, a note or a text box, which a named edit does not change.
WrongKind
The block at the address is of a kind that the edit does not take.
NoElement(Address)
The block was not read from an element of the main document part: F-Office made it, or the blocks are of another file.
NoPrefix
The part declares no prefix for WordprocessingML, so the edit cannot name its elements.
EmptyFind
The text of a replace is empty.
TextNotFound
The paragraph’s text does not hold the text of a replace.
TextNotFoundOutsideEquations
The paragraph’s text outside its equations does not hold the text of a replace. The paragraph holds an equation, whose text its text block shows and a replace does not change.
TextAmbiguous
The paragraph’s text holds the text of a replace more than once.
MatchCrossesElement
The match of a replace crosses an element that has no text of its own, such as w:tab.
MatchCrossesEdge
The match of a replace crosses the edge of an element that holds runs, such as
w:hyperlink.
MatchesOverlap
Two replaces of one paragraph match overlapping text. The index of the other edit.
BadCharacter(char)
The new text holds a character that the edit cannot write.
SectionBreak
The paragraph ends a section: its properties hold a w:sectPr.
NeedsParagraph
The delete would leave a cell or the body without a paragraph at its end, also counting the blocks that earlier deletes of the list take away.
LastRow
The row is the last row of its table that earlier deletes of the list leave.
RangeEnd
The block holds one end of a range whose other end lies outside it.
NoSuchStyle
The styles part has no style of this ID or name and kind.
Fields
NewXml(Error)
The new XML of an edit does not parse at its place, such as for a prefix that the copied properties use and that is declared on the block itself.
WrappedCells
The row holds a cell inside a content control, custom XML or alternate content, which a new row does not copy.
TooManyCells
A new row gets more texts than its row has cells.
MergedCellText
A new cell that continues a vertical merge gets a text, which stands in the merge’s first cell.
EmptyAuthor
The comment has no author.
EmptyAlt
The image has no text that describes it.
ImageSize
The width or the height of the image’s drawing is not more than zero, or lies beyond the largest length of a file.
NoFreeId(&'static str)
The file uses the largest ID of this kind, such as comment.
Part
A part besides the main document part that the edit changes does not read.
Trait Implementations§
Source§impl Clone for NamedFault
impl Clone for NamedFault
Source§fn clone(&self) -> NamedFault
fn clone(&self) -> NamedFault
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NamedFault
impl Debug for NamedFault
Source§impl Display for NamedFault
impl Display for NamedFault
impl Eq for NamedFault
Source§impl Error for NamedFault
impl Error for NamedFault
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for NamedFault
impl PartialEq for NamedFault
impl StructuralPartialEq for NamedFault
Auto Trait Implementations§
impl Forget for NamedFault
impl Freeze for NamedFaultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AddressStep>: Freeze,
&'static str: Freeze,
PhantomData<String>: Freeze,
impl Move for NamedFault
impl RefUnwindSafe for NamedFault
impl Send for NamedFault
impl Sync for NamedFault
impl Unpin for NamedFault
impl UnsafeUnpin for NamedFaultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AddressStep>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for NamedFault
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.