pub struct PatchLayer { /* private fields */ }Implementations§
Source§impl PatchLayer
impl PatchLayer
pub fn new_with(patch: Patch) -> Self
pub fn may_contain(&self, patch: &Patch) -> bool
pub fn insert(&mut self, patch: Patch) -> bool
Sourcepub fn patch_for(&self, offset: u64) -> Option<&Patch>
pub fn patch_for(&self, offset: u64) -> Option<&Patch>
finds the patch which contains data for the given offset
pub fn next_patch_for(&self, offset: u64) -> PatchSearchResult<'_>
pub fn iter_patches(&self) -> impl DoubleEndedIterator<Item = &Patch>
Trait Implementations§
Source§impl Clone for PatchLayer
impl Clone for PatchLayer
Source§fn clone(&self) -> PatchLayer
fn clone(&self) -> PatchLayer
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 moreAuto Trait Implementations§
impl Freeze for PatchLayer
impl RefUnwindSafe for PatchLayer
impl Send for PatchLayer
impl Sync for PatchLayer
impl Unpin for PatchLayer
impl UnwindSafe for PatchLayer
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