#[non_exhaustive]pub struct Target {
pub path: TargetPath,
pub final_size: u64,
pub regions: Vec<Region>,
}Expand description
One target file’s complete write profile.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: TargetPathWhere the writes land.
final_size: u64Highest target_offset + length produced by any region. May leave
trailing or interior gaps that the indexed applier must not touch.
regions: Vec<Region>Region timeline for this target, sorted by target_offset and
non-overlapping. Gaps between regions represent bytes the patch does
not modify (the sequential apply leaves them sparse / unchanged).
Implementations§
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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