pub struct CopyRecord {
    pub copy_start_offset: usize,
    pub copy_end_offset: usize,
    pub copy_end_offset_padded: usize,
}
Expand description

Record of the results of a copy operation

Fields

copy_start_offset: usize

The offset from the start of the allocation, in bytes, at which the copy operation began to write data.

Not necessarily equal to the start_offset, since this offset includes necessary padding to assure alignment.

copy_end_offset: usize

The offset from the start of the allocation, in bytes, at which the copy operation no longer wrote data.

This does not include any padding at the end necessary to maintain alignment requirements.

copy_end_offset_padded: usize

The offset from the start of the allocation, in bytes, at which the copy operation no longer wrote data, plus any padding necessary to maintain derived alignment requirements.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.