pub struct SourcePatch {
pub base_revision: u64,
pub range: ByteRange,
pub replacement: String,
pub origin: PatchOrigin,
}Expand description
A Rust-approved mutation of a byte range in canonical text (RFC-015 §7).
Fields§
§base_revision: u64Document revision the patch was computed against.
range: ByteRange§replacement: String§origin: PatchOriginTrait Implementations§
Source§impl Clone for SourcePatch
impl Clone for SourcePatch
Source§fn clone(&self) -> SourcePatch
fn clone(&self) -> SourcePatch
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 SourcePatch
impl Debug for SourcePatch
Source§impl<'de> Deserialize<'de> for SourcePatch
impl<'de> Deserialize<'de> for SourcePatch
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
impl Eq for SourcePatch
Source§impl PartialEq for SourcePatch
impl PartialEq for SourcePatch
Source§fn eq(&self, other: &SourcePatch) -> bool
fn eq(&self, other: &SourcePatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourcePatch
impl Serialize for SourcePatch
impl StructuralPartialEq for SourcePatch
Auto Trait Implementations§
impl Freeze for SourcePatch
impl RefUnwindSafe for SourcePatch
impl Send for SourcePatch
impl Sync for SourcePatch
impl Unpin for SourcePatch
impl UnsafeUnpin for SourcePatch
impl UnwindSafe for SourcePatch
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