pub struct Reframe {
pub length: usize,
pub range: Range<usize>,
}
Expand description
Groups parameters and utilities for payload reframing.
The term reframing means changing the outer embedding of a payload while preserving at least some part of its content. In contrast, resizing need never provide any guarantees besides a correct size. Intermediate layers will have to propagate a reframing call downwards and in the process overestimate the preserved region. Some utility methods for this case are provided.
Fields§
§length: usize
The desired length.
range: Range<usize>
The range in the current payload whose content must be preserved.
Implementations§
Auto Trait Implementations§
impl Freeze for Reframe
impl RefUnwindSafe for Reframe
impl Send for Reframe
impl Sync for Reframe
impl Unpin for Reframe
impl UnwindSafe for Reframe
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