pub enum ChangeError {
Package(String),
UnknownChange(String),
InvalidId(String),
Ambiguous {
id: String,
candidates: Vec<Change>,
},
PartOfChange {
named: String,
whole: String,
side: Option<(String, ChangeKind)>,
},
ExposedFinalMark {
container: &'static str,
path: String,
paragraph: String,
revision: String,
kind: &'static str,
},
}Expand description
Why changes could not be listed or resolved.
Variants§
Package(String)
The package could not be read or written.
UnknownChange(String)
A filter id names no change in the document.
InvalidId(String)
A filter id is not a change id (crate::ids::parse_change_ids),
or a filter kind is one no element has (ChangeFilter::normalized).
Ambiguous
A filter id names more than one listed change: a
duplicate w:id in one story.
PartOfChange
The filter’s ids name only some of the marks of one logical change
(list_logical_changes), or only part of one side of a
replacement.
Fields
side: Option<(String, ChangeKind)>For part of one side of a replacement: the side (r20+21) and
its kind.
ExposedFinalMark
Settling the selection would leave w:ins or w:del on a
container’s final paragraph mark. The mark was not already that
container’s final mark. A cell in this shape hangs Word’s Accept
All and Reject All (#1669, #1693). No document is returned.
Trait Implementations§
Source§impl Clone for ChangeError
impl Clone for ChangeError
Source§fn clone(&self) -> ChangeError
fn clone(&self) -> ChangeError
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 ChangeError
impl Debug for ChangeError
Source§impl Display for ChangeError
impl Display for ChangeError
impl Eq for ChangeError
Source§impl Error for ChangeError
impl Error for ChangeError
1.30.0 · 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 From<ChangeError> for ValidateError
impl From<ChangeError> for ValidateError
Source§fn from(e: ChangeError) -> ValidateError
fn from(e: ChangeError) -> ValidateError
Source§impl PartialEq for ChangeError
impl PartialEq for ChangeError
impl StructuralPartialEq for ChangeError
Auto Trait Implementations§
impl Forget for ChangeError
impl Freeze for ChangeError
impl Move for ChangeError
impl RefUnwindSafe for ChangeError
impl Send for ChangeError
impl Sync for ChangeError
impl Unpin for ChangeError
impl UnsafeUnpin for ChangeError
impl UnwindSafe for ChangeError
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.