pub struct RevisionRef {
pub target: TargetPair,
pub kind: String,
pub author: Option<String>,
pub range: Option<[usize; 2]>,
pub basis: String,
}Expand description
One original revision mark intersecting the paragraph.
Fields§
§target: TargetPairThe revision’s paired identity.
kind: Stringinsertion, deletion, move, paragraph_mark or formatting.
Revision author.
range: Option<[usize; 2]>Range of the working text the revision covers, when it has one.
basis: StringWhether the reference is an original-S observation ("original")
or a working-view fact ("working").
Trait Implementations§
Source§impl Clone for RevisionRef
impl Clone for RevisionRef
Source§fn clone(&self) -> RevisionRef
fn clone(&self) -> RevisionRef
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 RevisionRef
impl Debug for RevisionRef
impl Eq for RevisionRef
Source§impl PartialEq for RevisionRef
impl PartialEq for RevisionRef
Source§impl Serialize for RevisionRef
impl Serialize for RevisionRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RevisionRef
Auto Trait Implementations§
impl Forget for RevisionRef
impl Freeze for RevisionRef
impl Move for RevisionRef
impl RefUnwindSafe for RevisionRef
impl Send for RevisionRef
impl Sync for RevisionRef
impl Unpin for RevisionRef
impl UnsafeUnpin for RevisionRef
impl UnwindSafe for RevisionRef
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> 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.