pub struct RenderPlan {
pub spans: Vec<(usize, RenderTactic)>,
}
Fields§
§spans: Vec<(usize, RenderTactic)>
Each span is a number of lines and a tactic.
Implementations§
Source§impl RenderPlan
impl RenderPlan
Sourcepub fn create(
total_height: usize,
first_line: usize,
height: usize,
) -> RenderPlan
pub fn create( total_height: usize, first_line: usize, height: usize, ) -> RenderPlan
This function implements the policy of what to discard, what to preserve, and what to render.
Sourcepub fn request_lines(&mut self, start: usize, end: usize)
pub fn request_lines(&mut self, start: usize, end: usize)
Upgrade a range of lines to the “Render” tactic.
Auto Trait Implementations§
impl Freeze for RenderPlan
impl RefUnwindSafe for RenderPlan
impl Send for RenderPlan
impl Sync for RenderPlan
impl Unpin for RenderPlan
impl UnwindSafe for RenderPlan
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