pub enum AnchorStatus {
Ok,
Drifted,
Orphan,
}Expand description
Status of the anchor after last resolve attempt.
Variants§
Ok
Character-range match; the quote still lives at the same offset.
Drifted
The exact offsets moved but the quote (or sentence id) still matches.
Orphan
None of the selectors matched — needs user re-anchoring.
Implementations§
Trait Implementations§
Source§impl Clone for AnchorStatus
impl Clone for AnchorStatus
Source§fn clone(&self) -> AnchorStatus
fn clone(&self) -> AnchorStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 AnchorStatus
impl Debug for AnchorStatus
Source§impl Default for AnchorStatus
impl Default for AnchorStatus
Source§fn default() -> AnchorStatus
fn default() -> AnchorStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnchorStatus
impl<'de> Deserialize<'de> for AnchorStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnchorStatus
impl PartialEq for AnchorStatus
Source§impl Serialize for AnchorStatus
impl Serialize for AnchorStatus
impl Copy for AnchorStatus
impl Eq for AnchorStatus
impl StructuralPartialEq for AnchorStatus
Auto Trait Implementations§
impl Freeze for AnchorStatus
impl RefUnwindSafe for AnchorStatus
impl Send for AnchorStatus
impl Sync for AnchorStatus
impl Unpin for AnchorStatus
impl UnsafeUnpin for AnchorStatus
impl UnwindSafe for AnchorStatus
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
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
Compare self to
key and return true if they are equal.