pub struct FindingKey {
pub code: String,
pub set: String,
pub part: String,
pub location: String,
pub message: String,
pub place: Place,
}Expand description
What makes a finding in one version of a document the same finding in
another (Finding::identity): its code, set and part, where it sits
(its paragraph id or element chain, empty for a part-level finding), its
message with element indices dropped (w:p[3] reads w:p) and
paragraph ids spelled p#, and what surrounds it there (Place). A
finding named by an entity, a durableId or a bookmark, keeps that
entity in its message.
Fields§
§code: String§set: String§part: String§location: StringFinding::location; from identities, an element chain with
its indices dropped, or p# for a paragraph id.
message: StringFinding::message, normalised.
place: PlaceWhat surrounds the finding in its document, read by identities;
empty from Finding::identity.
Trait Implementations§
Source§impl Clone for FindingKey
impl Clone for FindingKey
Source§fn clone(&self) -> FindingKey
fn clone(&self) -> FindingKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FindingKey
impl Debug for FindingKey
Source§impl Default for FindingKey
impl Default for FindingKey
Source§fn default() -> FindingKey
fn default() -> FindingKey
Returns the “default value” for a type. Read more
impl Eq for FindingKey
Source§impl Hash for FindingKey
impl Hash for FindingKey
Source§impl Ord for FindingKey
impl Ord for FindingKey
Source§fn cmp(&self, other: &FindingKey) -> Ordering
fn cmp(&self, other: &FindingKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FindingKey
impl PartialEq for FindingKey
Source§impl PartialOrd for FindingKey
impl PartialOrd for FindingKey
impl StructuralPartialEq for FindingKey
Auto Trait Implementations§
impl Forget for FindingKey
impl Freeze for FindingKey
impl Move for FindingKey
impl RefUnwindSafe for FindingKey
impl Send for FindingKey
impl Sync for FindingKey
impl Unpin for FindingKey
impl UnsafeUnpin for FindingKey
impl UnwindSafe for FindingKey
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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.