pub struct Fitted {
pub content: String,
pub kept: Vec<usize>,
pub body_consumed: usize,
}Expand description
What fit_to_budget produced: the assembled output, the references it
kept, and how much of the body it got through.
Fields§
§content: StringBody plus reference block, inside the cap.
kept: Vec<usize>Indices of the references the surviving body still cites.
body_consumed: usizeBytes of body consumed. A caller paging a long document resumes here;
equal to body.len() when the whole body fit.
Auto Trait Implementations§
impl Freeze for Fitted
impl RefUnwindSafe for Fitted
impl Send for Fitted
impl Sync for Fitted
impl Unpin for Fitted
impl UnsafeUnpin for Fitted
impl UnwindSafe for Fitted
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