pub struct WindowSummary {
pub win_start_pos: u64,
pub win_indicator: WinIndicator,
pub source_segment_size: Option<u64>,
pub source_segment_position: Option<u64>,
pub length_of_the_delta_encoding: u64,
pub size_of_the_target_window: u64,
pub delta_indicator: DeltaIndicator,
pub length_of_data_for_adds_and_runs: u64,
pub length_of_instructions_and_sizes: u64,
pub length_of_addresses_for_copys: u64,
}
Expand description
Represents a summary of a window in a VCDIFF patch, including the positions of different sections within the window.
Fields§
§win_start_pos: u64
§win_indicator: WinIndicator
§source_segment_size: Option<u64>
§source_segment_position: Option<u64>
§length_of_the_delta_encoding: u64
§size_of_the_target_window: u64
§delta_indicator: DeltaIndicator
§length_of_data_for_adds_and_runs: u64
§length_of_instructions_and_sizes: u64
§length_of_addresses_for_copys: u64
Implementations§
Source§impl WindowSummary
impl WindowSummary
pub fn win_hdr_len(&self) -> usize
pub fn data_sec_start(&self) -> u64
pub fn inst_sec_start(&self) -> u64
pub fn addr_sec_start(&self) -> u64
pub fn end_of_window(&self) -> u64
pub fn is_vcd_target(&self) -> bool
pub fn has_reference_data(&self) -> bool
Trait Implementations§
Source§impl Clone for WindowSummary
impl Clone for WindowSummary
Source§fn clone(&self) -> WindowSummary
fn clone(&self) -> WindowSummary
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 WindowSummary
impl Debug for WindowSummary
Source§impl Default for WindowSummary
impl Default for WindowSummary
Source§fn default() -> WindowSummary
fn default() -> WindowSummary
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowSummary
impl PartialEq for WindowSummary
impl Eq for WindowSummary
impl StructuralPartialEq for WindowSummary
Auto Trait Implementations§
impl Freeze for WindowSummary
impl RefUnwindSafe for WindowSummary
impl Send for WindowSummary
impl Sync for WindowSummary
impl Unpin for WindowSummary
impl UnwindSafe for WindowSummary
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