pub struct PatchBuffer { /* private fields */ }Implementations§
Source§impl PatchBuffer
impl PatchBuffer
pub fn new() -> Self
pub fn add_patch(&mut self, offset: usize, data: &[u8])
pub fn apply_to(&mut self, buf: &mut [u8]) -> u32
pub fn patch_count(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn applied_count(&self) -> u32
pub fn total_bytes(&self) -> usize
pub fn clear(&mut self)
pub fn patches(&self) -> &[Patch]
pub fn max_offset(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatchBuffer
impl RefUnwindSafe for PatchBuffer
impl Send for PatchBuffer
impl Sync for PatchBuffer
impl Unpin for PatchBuffer
impl UnsafeUnpin for PatchBuffer
impl UnwindSafe for PatchBuffer
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