pub enum BreakDecision {
Place,
MoveToNextPage,
Split {
items_on_current_page: usize,
},
}Expand description
Decide what to do when a node doesn’t fit on the current page.
Variants§
Place
Place the entire node on the current page (it fits).
MoveToNextPage
Move the entire node to the next page (unbreakable, or better aesthetics).
Split
Split the node: place some content here, continue on the next page.
Trait Implementations§
Source§impl Clone for BreakDecision
impl Clone for BreakDecision
Source§fn clone(&self) -> BreakDecision
fn clone(&self) -> BreakDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BreakDecision
impl Debug for BreakDecision
Source§impl PartialEq for BreakDecision
impl PartialEq for BreakDecision
impl StructuralPartialEq for BreakDecision
Auto Trait Implementations§
impl Freeze for BreakDecision
impl RefUnwindSafe for BreakDecision
impl Send for BreakDecision
impl Sync for BreakDecision
impl Unpin for BreakDecision
impl UnsafeUnpin for BreakDecision
impl UnwindSafe for BreakDecision
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