pub enum PackItem {
Literal {
len: u32,
},
Mark {
slot: u8,
},
Emit {
slot: u8,
width: u8,
},
}Expand description
One item in a Op::PackSegments item table.
Variants§
Literal
Copy len contiguous bytes from the data object, advancing its cursor.
Mark
Record the current output position into slot.
Fields
§
slot: u8Slot index; must be below crate::dra::program::MAX_OFFSET_SLOTS.
Emit
Emit the marked value of slot, zero-padded to width decimal bytes.
Fields
§
slot: u8Slot index marked by an earlier PackItem::Mark.
Trait Implementations§
impl Eq for PackItem
impl StructuralPartialEq for PackItem
Auto Trait Implementations§
impl Freeze for PackItem
impl RefUnwindSafe for PackItem
impl Send for PackItem
impl Sync for PackItem
impl Unpin for PackItem
impl UnsafeUnpin for PackItem
impl UnwindSafe for PackItem
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