pub struct ReframePayload {
pub length: usize,
pub old_payload: Range<usize>,
pub new_payload: Range<usize>,
}Expand description
Describes the resizing that keeps a payload intact.
Fields§
§length: usizeTotal length of the new buffer.
Must not be smaller than new_payload.end.
old_payload: Range<usize>The position of the payload before reframing.
Needs to have the same length as new_payload.
new_payload: Range<usize>The position of the payload after reframing.
Needs to have the same length as old_payload.
Auto Trait Implementations§
impl Freeze for ReframePayload
impl RefUnwindSafe for ReframePayload
impl Send for ReframePayload
impl Sync for ReframePayload
impl Unpin for ReframePayload
impl UnsafeUnpin for ReframePayload
impl UnwindSafe for ReframePayload
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