pub enum PlacedCommand {
Copy {
src: usize,
dst: usize,
length: usize,
},
Add {
dst: usize,
data: Vec<u8>,
},
Move {
src: usize,
dst: usize,
length: usize,
},
}Expand description
A command with explicit source and destination offsets.
For standard deltas, Copy::src is an offset into the reference and
Copy::dst is the write position in the output. For in-place deltas,
both refer to positions in the shared working buffer.
Move copies from already-written output buffer at src to dst.
Constraint: src + length <= dst (only previously written bytes).
DLT\x04 only; always safe for in-place (no CRWI cycle possible).
Variants§
Trait Implementations§
Source§impl Clone for PlacedCommand
impl Clone for PlacedCommand
Source§fn clone(&self) -> PlacedCommand
fn clone(&self) -> PlacedCommand
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 moreSource§impl Debug for PlacedCommand
impl Debug for PlacedCommand
Source§impl Display for PlacedCommand
impl Display for PlacedCommand
Source§impl PartialEq for PlacedCommand
impl PartialEq for PlacedCommand
impl Eq for PlacedCommand
impl StructuralPartialEq for PlacedCommand
Auto Trait Implementations§
impl Freeze for PlacedCommand
impl RefUnwindSafe for PlacedCommand
impl Send for PlacedCommand
impl Sync for PlacedCommand
impl Unpin for PlacedCommand
impl UnsafeUnpin for PlacedCommand
impl UnwindSafe for PlacedCommand
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