pub struct ByteEdit {
pub start: usize,
pub end: usize,
pub before: String,
pub after: String,
pub provenance: Provenance,
}Expand description
A strict UTF-8 byte-range edit for high-throughput prepared application.
Fields§
§start: usize§end: usize§before: String§after: String§provenance: ProvenanceImplementations§
Source§impl ByteEdit
impl ByteEdit
pub fn replace( range: Range<usize>, before: impl Into<String>, after: impl Into<String>, provenance: impl AsRef<str>, ) -> Self
pub fn insert( offset: usize, after: impl Into<String>, provenance: impl AsRef<str>, ) -> Self
pub fn delete( range: Range<usize>, before: impl Into<String>, provenance: impl AsRef<str>, ) -> Self
Trait Implementations§
impl Eq for ByteEdit
impl StructuralPartialEq for ByteEdit
Auto Trait Implementations§
impl Freeze for ByteEdit
impl RefUnwindSafe for ByteEdit
impl Send for ByteEdit
impl Sync for ByteEdit
impl Unpin for ByteEdit
impl UnsafeUnpin for ByteEdit
impl UnwindSafe for ByteEdit
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